The water pipe is used in the building's water supply system.
Ball valves are used to shut off the flow of water in the system.
In order to determine in practice these two concepts, you need to decide on physics.