What drives energy flow and chemical cycling on earth?

What drives energy flow and chemical cycling on earth?