Plug the washer and make sure there are no wires on the drive motor. If the wire harness is damaged, you need to replace it. You should replace the drive motor if the wire harness connections are okay.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.