If the washer stops filling then the problem is related to the electrical circuit that controls the valve.
Washing machine keeps draining while filling. If I change the load size to medium it works fine. If the washer starts to drain as soon as it fills then I suspect the drain pump is the problem. 1 the mesh filter of the water hose.
So if the tub is filling past the time it ought to be it could be a result of a broken water inlet valve. If your washer is draining the water at the same time it is filling with water please check the following. Sometimes by removing the soap dispenser drawer and carefully observing inside the soap dispenser you can see water slowly dripping in at regular intervals from the nozzles at the top.
It drains the water faster than it can pour it so it does not actually fill with water but it does re-wet the clothes so the clothes are dripping wet when the cycle is complete. Pour hot water down the drain. If the washer continues to fill then the inlet valve is defective.
The issue was the water inlet valve where the water flows into the washer. You may get some dripping of water into the soap dispenser for a while after. It sounds like your drain is syphoning the water out as it tries to fill.
Sometimes by removing the soap dispenser drawer and carefully observing inside the soap dispenser you can clearly see water slowly dripping in dont do this straight after using it wait a while you will also be able to tell which valve is at fault by. If we advance the timer manually to the spin cycle it spins but stops draining. Whirlpool Washer Keeps Repeating Cycle.
For you to check the severity unplug the washer to see if water flows even without power. My Kenmore 80 Series washing machine is 4 yrs old. However a drain pump that keeps running can also be a faulty control board the water inlet valve or just a defective water level switch.