The nitrogen atom has an electronic configuration 1s2 2s2 2p1x 2p1y 2p1z.
The nitrogen atom shares it's three electrons with three hydrogen atoms to form ammonia molecule. These are bond pair electrons.
There are two unshared electrons in 2s orbital. These are called lone pair of electrons.
Therefore, there are total four electron pairs ( three bond pairs and one lone pair).