Hi, there's room for more detail on this subject, but fyi you can get started on these earlier posts
How did fountains function before the invention of electricity?
Not sure if this is more "Ask Historians" or "Ask Science" but, essentially, how did pre-industrial civilizations move water uphill?
.. and a couple on Ancient Rome
What does it really mean when we hear about ancient civilizations that had running water?
Ancient Piping - How and Where?