This is all thanks to Air pressure and water pressure. Lets say that you are drinking water from a glass with the help of a straw. When you suck at the straw, you are essentially drawing air out of the straw. This decreases air pressure which was in the straw right above the level of the water. In the mean time the air pressure around your glass of water is constantly pushing the drink level to go down. And the water pressure of your drink is pushing the water level to go up. Since you just helped decrease the air pressure in the straw, the water finds an outlet and thus goes up the straw till it reaches your mouth.