What does the sun provide to earth?

The Sun provides energy.

Electromagnetic radiation and particles which is experienced as a wide range of effects such as heat, light and the Aurora.