how does energy work?

Read about energy here.

https://en.wikipedia.org/wiki/Energy