GE washer no spin cycle

Washer works fine until a couple of days there is no spin cycle. It spins for the wash cycle, drains well, everything seems fine. It has a clutchless motor and belt looks fine, we did a by-pass for the lid door to see if it was the switch, it doesn’t spin even with the bypass, just drains and puts more water, then drains again, and sounds like is going to start spining but nothing, after a while it smells like somehting is burning on the top control panel.