The typical derailment is just that. A wheel or two came off the track. Put the rerail frog under it and pull/push it back on. Happens literally thousands of times for every major accident like this. The nature of narrow steel wheels with a little flange keeping them on a narrow steel rail.