Generally, there are three valves in a washing machine. One is for the cold water, and the other one is for the hot water. Turn off and on the signal on these two valves is controlled by the third one named solenoid valve. It functions according to its program and control when the washer valve will turn off or turn on.