Solenoid valves are control units which, when electrically energized or de-energized, either shut off or allow fluid flow.
When an electrical current is introduced, a magnetic field forms around the coil which draws the plunger in. This way a solenoid converts electrical energy into mechanical work.