If we are talking about the apple that fell on the head of Sir Isaac Newton and prompted him to come up with the theory of gravity, then the energy in such an apple is due to its elevation above ground which gives it potential energy and also due to the attraction of the earth.