A cargo train has blown onto its side, causing damage to the tracks.