Ice maker problem

The icemaker does not get water to make ice. I unplugged the plug that goes into the coil that allows water to go into the icemaker and applied 120 volts to this coil. The ice maker made ice fine. The wires that feed this coil are 0 volts. What activates this coil so water can flow?