The Sun always lights exactly one half of the Moon. What changes is how much of that lit half we can see from Earth — and that depends entirely on where the Moon sits in its orbit. The phases aren't Earth's shadow; they're just our changing viewing angle. One full cycle (new Moon to new Moon) takes about 29.5 days.
Sunlight streams in from the left, lighting the Moon's right-facing half no matter where it is. Move the Moon around its orbit and watch the inset disc — that's the same Moon seen from Earth. Notice it's pure geometry: no shadows involved.
As the Moon waxes (grows) then wanes (shrinks) over the month, we give the milestones names. The highlighted one tracks the orbit above; click any phase to jump straight to it.
The Moon spins exactly once per orbit — synchronous rotation. The marked crater (and the Moon's "near side") therefore keeps pointing at Earth the whole way around. Watch how it must turn 360° to do that, which is why we never see the far side.