The washer needs to be unplugged. The main electronic control board has the lid lock/switch assembly. You will usually need to force the lid open if the connections are okay. This will break the lid lock. The lid lock should be replaced if it is damaged or broken.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.