Todays' locomotives by Lionel and other manufacturers use totally enclosed 'can' motors that run on DC voltage. They need a rectifier to run on the AC voltage supplied by the transformer, and the rectifier is on a circuit board that is used to reverse the motor direction.
The AC motors of the past were of the open frame type which could be disassembled for maintenance and cleaning.
Larry