A motor that is hot to the touch or smells like ozone is a major safety red flag.
Before buying parts, confirm the motor is actually the problem. Look for these "cries for help": buy ceiling fan motor
This often indicates electrical strain or a dying motor. A motor that is hot to the touch