The heating element could have burned out - the will do that if run dry or sometimes from age. We would need to know the precise model of engine to correctly recommend a part, but it will be along the lines of something like these parts:
Lionel 610RES163W
You could also replace the unit as a whole (if you can find a source):
Lionel 6108738250