The engine of the Dehradun-Ujjain express train failed near Modi inter-college around 12:30 pm, they said.
Later, after the agitated passengers created chaos, the engine of the train was replaced with that of a passing goods train and it left for its onward journey, the sources said.