Solenoids are the most important components used in solenoid valves to control the flow of liquids and gases. Solenoids are electromechanical devices that convert AC or DC electrical energy into linear motion. ... Most solenoid valves have a replaceable coil and can be used with coils with different voltages.