Chosen Solution

I have a whirl pool top loader washer and water goes in it then it stops working

Door Lock The door lock secures the washer door shut during operation. Once the washer door is closed, the washer can begin operating. If the door lock is defective, the washer door will not latch properly. The door lock can fail either mechanically or electrically. Inspect the door lock for damage. If the door lock is damaged or does not latch properly, replace it. To determine if the door lock has failed electrically, use a multimeter to test each of the door lock switches for continuity.