It’s bent shape gives it an uneven distribution of electrons.
Water is a "polar" molecule, meaning that there is an uneven distribution of electron density. Water has a partial negative charge ( ) near the oxygen atom due the unshared pairs of electrons, and partial positive charges ( ) near the hydrogen atoms.