The door lock assembly wire harness should be connected after the washer is unplugged. If the wire harness is damaged, you need to replace it. The door lock assembly should be replaced if the wire connections are OK.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.