whirlpool duet sport

I am getting a F-01 code on the display screen and my washer will not spin at maximum speed. The manual says it is a electrical issue but I am not sure what to check. Whenever I ran the drain and spin cycle it went to maximum speed 1 time , but it did not run it again. When the dryer was empty it ran fine with no codes.