Why do you think a water molecule is bent and not linear?
VSEPR theory tells us water has a bent shape.
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