It might make more sense if you consider that the three objects are not usually aligned, due to the tilt of the moon's orbit around the earth. In the case of the full moon, this allows us to see the fully illuminated moon even when we are between it and the sun.
Yeah that is the part that makes it confusing. Thank you!