What are the two sources of energy for the Earth system?

What are the two sources of energy for the Earth system?