You can gather energy by exploring islands and opening energy chests, as well as continuously completing chains, by tapping three consecutive objects of the same type.
After some chains, you will get a reward that can give you different amounts of Energy.

Another (the most effective) way to get energy is by completing Merge boards.
You can read how to do it here.