The sprinkler heads function according to a pressure system created as the water travels through the pipe and surges above ground. When the water is turned off and stops running, the sprinkler heads retract to ground level. If you have sprinkler heads in a garden, they’re typically the raised-head type.