Hi and welcome to FixYa
, I am Kelly.
This is usually caused by a failed lid switch that is item 9 this link:
First off put the washer in the spin cycle. With the lid closed see if the washer will spin. No spin also = bad lid switch. If the washer spins but will not agitate then the problem is most likely the water level pressure switch or associated air tubing. (any air leaks and it will not stop filling)
Water level switch is item 12 here:
We test these with NO WATER in the machine and after connecting an external hose with the lid closed with power on by orally passing air into the small air hose we connected. It will click and the washer must agitate. If it clicks and does not agitate... again it points to the lid switch. Disconnecting this water level switch hose with ater in the maching and then re-connecting the hose WILL result in the machine overflowing. Tub MUST be empty.
You check the lid switch as you just open or close the lid. You should hear an audible CLICK as the lid is barely off of its closed position and again as the lid is almost closed. NO CLICK = bad door switch.
These are the 2 most common reasons that will correct the symptom your experiencing more than 90 percent of the time. There is a remote possibility that there is a problem with the motor / motor clutch. Motor clutch problems are noted by odd noises when motor is running and it will not spin or agitate. If the motor will spin the machine but will not agitate the machine it can be a motor winding.
Thanks for choosing FixYa