The 3 most common part(s) or condition(s) which cause the symptom Washer door or lid won't lock are listed below starting with the most likely. Check or test each item and watch any available videos.
RepairClinic Item # 893839
If the door won't latch, the door lock assembly might be defective. These are normally made of plastic and cannot be repaired. If the door won't latch and the door lock is broken, replace it.
RepairClinic Item # 1032966
If the washer door won't unlock the problem might be the main control board. This is not common. Normally the problem is with the lock mechanism.