Fact 1: the moon revolving around the Earth causes the phases of the moon. 
Fact 2: Phases of the moon, however, depend on the relative positions of the Earth, moon, and Sun.
moon phases depend on the sun.