They are the same thing. Energy is heat, and power is the amount of energy applied over a span of time.
That cannot be the case because we have gravitational energy that is not related to heat.Also power is the amount of
work over a span of time. Energy is the capacity to do work, common in many textbooks is wrong because energy can be unavailable to do work.
According to Richard Feynman we have no idea what energy is.We allow an evemt to go through its motions and if we take into account all the different interactions of
forcesbefore the event and after we arrive at a numerical value which conserves the quantity we call energy.