Valves control water flow and pressure, ensuring safe and regulated management of the plumbing system.