Answer:
Like the person above said, the moon gets its light from the the sun, and at night the moon reflects the suns light, making it visible to us in our sky.
This helps you predict how the moon moves because when the moon is directly in front of the sun, it is the full moon.
When it is the quarter or half moon, the moon isn't directly in front of the moon, but it still reflects some of the sun's light to make the moon appear that way.
As well when we have an eclipse, this means that the moon has made its way in front of earth, the moon's back facing us, but the moon's face, facing the sun.
HOPE THIS HELPS :)