The relative positions of the Earth, Moon and Sun determine the observed phase of the Moon.
The Earth orbits the Sun once per year, while the Moon orbits the Earth once per month (moonth?).
(The Earth also spins once on its own axis every day.)