I used to do a lot of this years ago but I've probably forgotten most of it but here's what I barely remember:
As everyone sez: blow it out. Cleaning a motor can mean a lot of things. Is the motor not working?
Here are some things you can do: replace the brushes (does it have brushes?). Clean the commutator with sandpaper (don't use emery cloth). You can usually clean between the commutator segments using a broken hacksaw blade. It the commutator is in bad shape, take it to a repair shop and have them lathe it.
We used to use carbon tetrachloride for cleaning and dissolving gummed oil or other gunk. Probably use trichloroethane now. You can get this in an auto supply store as brake shoe cleaner or disc brake cleaner. Whatever you use, get a solvent that does not leave a residue and is essentially nonflammable.
If the thing is wet, you can bake it in an oven at about 175 degrees for several hours to remove moisture.
Check bearings, bushings etc for wear; check for excessive runout in the shaft; check for broken wiring, bad insulation,etc.
Unplug the thing before you work on it.
------------------
Hoodoo
The low, hoarse purr of the whirling stonethe light-pressd blade,
Diffusing, dropping, sideways-darting, in tiny showers of gold,
Sparkles from the wheel.
Walt Whitman