Here's how it works:
* The Sun is a star: It produces its own light and heat.
* The Moon is a large, rocky body: It orbits the Earth.
* Sunlight falls on the Moon: Some of this light is absorbed by the Moon's surface, and some of it is reflected back into space.
* We see the reflected light: The reflected sunlight is what makes the Moon appear bright in the night sky.
So, the Moon doesn't "get" light from the Sun in the sense of receiving a beam, but rather it acts like a mirror, reflecting the Sun's light.