Whirlpool washer won't fill with cold water

Whirlpool washer won’t fill with cold water. It does fill with hot but not cold.
Took off hose and cold water flows through the hose Ok. Any Help? Thanks.

What is the model number of the washer?

Swap the electrical connections at the hot/cold solenoid valves and set it for hot water. If you don’t get cold water, the valve assembly is bad. Check the inlet screen of the valve to make sure it isn’t clogged up.

Eric