It happened late Sunday afternoon on the tracks between Sunnyside Yard and Penn Station.
The train typically carries passengers but no one was on board at the time.
Firefighters were able to contain the flames and only one train was delayed as a result.
No one was injured.