Sun is a star and is known to be a source of light and heat for all the planets including the Earth.
Mercury and Jupiter are celestial bodies called planets. Just like the Earth, these planets cannot emit light on their own.
Moon is the natural satellite of the Earth. Satellites also do not emit light on their own.