How did Mesopotamians use technology tocontrol their water supply?

how did mesopotamians use technology to control their water supply