Washer makes noise, sometimes fills partly with water, agitates then shuts off.

:confused: My washer will make a noise when trying to fill with water, sometimes it does fill, the washer does agitate but then eventually shuts off before completing the cycle and draining. No error code has appeared. What can I check to fix this problem?