Near the equator, the sun can be directly overhead.
Due to the tilt of the Earth, the poles can be in the path of sunlight. During the summer (northern hemisphere), the north pole is in 24hr sunlight and the south pole is in 24hr darkness. This reverses when winter comes around.