A car crashed into a passenger train next to a building.