N has 5 valence electrons; O has 6..
Typically, N makes 3 bonds whereas O makes 2 bonds
normally N has 1 lone pair and shares 3 valence e- with other atoms. For example, NH3, you have 3 cov bonds and one lone pair.
O normally has 2 lone pairs and shares 2 valence e- with other atoms. For example, H20, where you get 2 cov bonds and 2 lone pairs.