Why do you think a water molecule is bent and not linear?
The central oxygen atom has four pairs of electrons. Two pairs are shared in single covalent bonds with hydrogen atoms. The other two pairs are not shared with any other atom (non-bonding pair).
Water has an AXE designation of