Ammonia has 4 electron pairs right? 1 at the top, 1 left, 1 right, 1 bottom.
However, it only has 3 bonding pairs since 1 of the electron pairs is unbonded.
The unbonded electron pair repels the bonding electron pairs causing them to bend down.
That's why it looks like a trigonal pyramid (aka...