Whirlpool washer won't fill

Washer agitates, won’t fill with water. Timer replaced, washer worked fine for 5 loads over the past few days. Now, problem has returned. Water does not come into the washer.