Look up solenoid valves, many cheap sources online. Usually you run them using a relay, h-bridge driver chip or some other such circuit to keep the larger currents (0.5A to 2A perhaps for small valves) which drive the solenoid separate from your more sensitive other electronics. Some valves are available with latching characteristsics, others which only need active power either to stay open or stay closed.