wash machine wont spin or drain

the wash machine will fill with water but will not do anything else. for the last month the washer would fill with water then stop, then i would close the lid a bit harder than normal and the cycle would start again, but that trick doesnt work anymore. i dont know what to do. any help would be awesome!