What is the best thing to clean the motor inside out and outside?

How often do you clean the motor?

And is there anything to spray on the motor inside and outside of the motor?

Thanks