will not spin or fill with water but drain runs entire time

so the washer just stopped working.
The washer on any cycle will shoot water in for 3-5 seconds and does a quarter turn in the spin then the drain comes on and runs for 5 minutes then the machine stops.
I have read about the water valve but also question that since it does allow water in then stops.

please help