A lorry driver died when his vehicle left a road and hit a building, police said. It happened on the A7 at Scotsdyke, almost on the border with Scotland, at about 16:10 BST on Wednesday.