Passengers from Sheffield to London had to cross an evacuation ramp onto a different train after breaking down in a “nightmare” four-hour ordeal.