Hello and thanks for using JA!
My name is ***** ***** I have been repairing appliances for over 40 yrs and I will be assisting you tonight in trying to find out why your appliance is not working. Sometimes, there will be lapses in my replies back to your because of the volume of questions I am answering. But, please be assured that I will be giving you my best effort to help solve your problem.
You may have a bad valve or you may have some issue with your water supply that keeps introducing dirt into the valve.
You need to determine first if you have power going to the valve when the machine calls for water. Get a voltmeter and check the power plug going to the valve. If you have no power, then you have another problem with the machine calling for water and you will have to address that issue.
If you do, the next thing to do would be to see if you have a good water supply by putting the fill hose into the sink or bucket and see if you have a good flow.
Lastly, if you a good supply, you need to pull the filter out of the back of the water valve and see if it is clogged up. If both issues check out, then the valve is bad.
Check those out and let me know what you find.