The bonds around an atom, formed through electronic sharing, are made up of pairs of electrons. These pairs of electrons in a molecule occupy defined places in space, just like electrons in atoms. This achieves the minimum repulsion between the electrons. Achieving this minimum repulsion conditions the shape that the molecules adopt.
The electron pairs are distributed around the nucleus of the central atom like balloons held together by the inflation nozzle.
BH3
CH4
NH3
H2O
In molecular models (JSmol in the header), the non-shared electron pairs that nitrogen and oxygen have are "invisible" but they are there implicitly, conditioning the molecular geometry.