Replacing an AC motor is a complex process — I don’t recommend doing this as a DIY project. Instead, hire an HVAC technician to make sure it’s done right.