Open or close it to control the flow of a liquid or gas (5)
I believe the answer is:
valve
(Other definitions for valve that I've seen before include "Structure with a flap to ensure one-way flow" , "Flow controller" , "Device regulating flow" , "Flow regulator" , "Structure with a flap to insure one-way flow of fluid" .)