Best to get the model number and call Lionel. If you are buying from a dealer and its out of warranty insist that you test run it and that they knock a good chunk off the price to cover a repair visit.
If you are buying from a private party all bets are off.