The fire broke out after four bogies including the engine of the train going to Bihar derailed, PRO, Northern Railway, Alok Srivastava said.
Fire tenders have been rushed to control the flames from the district headquarters, he said.
No injuries or casualties have been reported so far.
The route of about 12 trains has been changed while four others have been cancelled, he said.
GM, North Eastern Railway, B. Ramachandran has ordered an enquiry and rail traffic on the route is likely to be restored by the evening.