Replacing a bathroom fan?
If you have an existing fan, you should be able to replace the motor only. Turn off power, remove faceplate, unplug motor. Remove motor. Install new motor, plug in new motor. Turn on power and test, replace faceplate.

A picture of the housing your fan is in would help a lot.