there is a plastic pin that activates a switch when you close the lid.
check to make sure the pin did not break.
if the pin did not break then you have a bad safety switch.
my washer did the same think. and allthough i dont advise it you can disconnect the safety swith and that will fix your problem. thats what i did.