Passengers were forced to walk on the tracks after their train was evacuated