The New Moon occurs when the moon is between the Sun and the Earth.  Full Moon happens when the Earth is between the Sun and the Moon.  The half moons happen when the moon is at 90 degrees to the line between the centers of the Sun and the Earth.