The lid position is monitored by a safety interlock switch. You'll need to replace it. The part number is(NNN) NNN-NNNN and the price is $15.20. You can buy it at www.repairclinic.com.
If my answer helps you, please click on the 'accept' button. That's how we experts are paid for our efforts.
In case my last post did'nt come through, the correct part number is1268253.