An initial investigation suggests the driver had not activated a track switch, resulting in the tram derailing and smashing into a building.