GE Washer will not do final spin cycle

The washer will go through all the cycle properly except for the final spin cycle. It had been working fine but suddenly started doing this. I can manual switch it to spin and it works.
What do I need to do or replace?