Washer not filling

Hello,
This washer would not fill with cold water. I changed the valve inlet#285805 but the same thing kept happening. Later on the hot water would no longer fill as well. Everything else seems operational. What else could it be?
Thank you.
Steve