Which contributes to the polarity of a water molecule?

Bdeflection of hydrogen atoms by lone pairs of electrons
Cno difference in the electronegativity of oxygen and hydrogen