Epanet allows you to set a pipe's status to open, closed or CV (check valve).
Open or closed are what their names says. Flow occurs from the higher head node to lower head node or no flow goes through.
Check valve allows flow only if the initial node's head is bigger than the end's. This is actually a check valve's function, but these valves' names are completely different in some languages (in Brazilian Portuguese they're called "válvulas de retenção", or something as retention valves) and it might confuse people (as it did to me).
These status can be changed through rules or controls.