The 2 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 # 1515091
If the washer lid or door won't lock the lock and switch assembly might be defective. This is a very common problem. The lock and switch assembly can fail either mechanically or electrically. Test any electrical switches with an Ohm meter for continuity. The switches should have continuity according to their design.
RepairClinic Item # 2118235
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.