I don't know about plumbing...but here's my take...(I'm pretty dumb so don't think I'm dumbing it down for you)
flip-flops are used to store a single bit (like memory). two common types of flip-flops are J-K and D flip-flops.
I'll start with D:
the main inputs are: D and clock.
the output: Q
when there is a rising edge on the clock (a signal going from LOW to HIGH), whatever is on the input D, will be 'stored', and that's what will appear on Q.
now for J-K:
instead of D, you have two inputs J and K,
if there is a rising edge on the clock, and J is HIGH, Q will be HIGH (SET). If J is LOW and K is HIGH, Q will be LOW (RESET). If both J and K are high, it will toggle Q (made opposite).
Now for plumbing:
D is like what's in the toilet, and Q is what's in your septic tank. flushing the toilet is analogous to the rising edge of the clock. I have no clue how to explain J-K flip flops with plumbing. hope i helped