Maytag fills with water, but that's it!

My maytag fills with water, but you have to slam the lid a few times to get it to continue from there. Is this a lid switch or a loose connection somewhere? Thanks for your help.