You can buy them directly from Lionel at this link: Lionel Replacement Parts
Enter the model number of the locomotive in the box and click search. It will look like the box below
This will bring up a parts list for your locomotive and you can select the motor and order it directly from the website. There's also a link on the page with a phone number if you'd rather call to order or if you have further questions.