Only fills with water

My whirlpool washer will only fill with water and make a humming sound. We have changed the lid switch and motor. Any help or advice would be greatly appreciated.

If you have installed a new motor and you still get a humming sound the reason could be the start capacitor is bad. You can find one here @ http://www.appliancepartspros.com/whirlpool-capacitor-motor-start-wp8572717-ap6013434.html
Does it drain and spin? Also another reason is the transmission may be locked up.

It will fill with water and hum only. Thank you for your help. I will let you know what happens next.

It was the start capacitor. Thanks for the help.

Thank you for the update and for using appliancepartspros.com glad we could help!