Washing Machine Fills with water, then drains
Also check the water fill hose. Some of them have a screen to trap particles. If the screen is dirty, it will slow the water flow as well causing the machine to "time out"  and go directly to drain.