Thank you for using Just Answer.
The most common cause of this type of problem on these machines it actually the lid switch. You can check it to see if it clicks (mechanically) and to see if it will close the circuit (with a volt meter electrically).
Please post the model number so that we can give you specifics if you would like more information and/or clarification. You'll usually find the model number on a sticker under the lid on the cabinet of the machine.
Please post the model number like this (with extra spaces) - 101 11 22 33 44
You're welcome. Thank you for the accept. Please let me know if you would like more information. I'll be checking back later today.