Spin cycle not working

I have an amana washer - not that old - does not get that much use - it will go through all cycles except spin - there is a "hot" smell when it gets to that cycle and it shuts itself off. Is it the motor? Please help.