Washer stopped working

Washer stopped in mid cycle. I drained the water and inspected the drain motor for any blockage, it is fine. Put everything back together, now the machine will not start at all. Asked some folks about it and they all thought that the water inlet valve had gone bad. Replaced that, but it still won’t run. I noticed something today…when I try to start the washer, the door lock light comes on…but I can still open the door. Could a faulty door lock switch be the cause of all this?