I'm going to assume this is an old train with a whistle motor in the tender. It may just.need some cleaning, oil and/or motor brush (contact) attention. It may require some dissembling. If you are not up for do it yourself send it out.
Other wise remove the shell if it looks like the attached picture saturate the wicks with oil. Some you have to remove the two nuts to seprate the case halves apply a drop of oil to the shaft at the imeller AND a TINY drop to the other side of the shaft at the electrical brush plate. Look at the copper plate on the spinning armature. Even? It shouldn't be grooved and can often be sanded smooth for better electrical flow.(search & read up on these topics for more exacting info)
Check/wipe the brushes and springs that hold them in the brass tubes on the brush plate. They should be "long barrels" new, start thinking about a swap when they look like a "perfect" or squat barrel. They need pressure and if you think a spring is soft it likely might be. (brushes & springs are chicken feed cheap)
Then there is the relay. It has a moving arm & a pair of contacts. Clean them gently; alchohol and then closing them on clean absorbant paper or cardboard then pulling gently to wipe.
Clean your wheels and rollers. On wheels, if you've not cleaned them often, you better scratch at the wheel metal. The wheel gunk can easily look just like metal even after a wipe with alcohol and gets hard as a rock; camouflage! (keep solvents off of body paint and plastics )
Let us know what happens.