Maytag Washer will not agitate but will spin and rinse

our Maytag washer started smelling like something burning last night and would not agitate but the spin cycle worked and drained the water… Does anyone know what the problem might be.