Your train ride is interrupted as all passengers have to deboard so that repairs can be made. It may take a day or two. The company will of course provide you with food and a hotel room for the duration, and upgrade you to the next possible express. You might as well take a look at the city.