Network Rail said the train was heading from Ardwick to Carnforth. The line is now closed between between Manchester Piccadilly, Preston and Newton.
The train is a diesel. The smell from the fire is overpowering. Several surrounding streets have now been closed.
More top news
Heavy rain Saturday night - fresher, brighter and more showery on Sunday
Heavy rain due on Saturday night - windy
The result of the Labour leadership ballot is to be announced later as party members gather for the annual conference in Liverpool.