Currently in a swimming pool shed. A distributor? This device takes water in the top, and outputs it alternately to one of five pipes at the bottom. When working it makes a clockwork sound. There are plastic gears inside. When I know what it is called then I can get parts for a replacement.
It is a zone indexing valve. They are commonly found on sprinkler systems to route the water to different areas. the design changes a lot so if you can find a brand name, it will help getting parts. Worse case scenario, you will have to replace the valve with a new one. good luck and stay safe out there.