What kind of eclipse happens when the moon gets directly in the middle of the sun and the earth?

Then the Moon would block the Sun, from our point of view. That is called a solar eclipse.