An object can possess energy as a result of its motion, position and deformation.
On Earth, the force of gravity is always acting upon you. When you are above the Earth's surface you have potential (stored) energy. This is called gravitational potential energy (GPE).
The amount of GPE an object on Earth has depends on its:
mass
height above the ground
In the diagram:
all the books on a shelf have GPE
book A has more GPE than book C because it is higher
book B has more GPE than book A because it has a greater mass
If an object is lifted, work is done against gravitational force. The object gains energy. For example, book C would gain GPE if it were lifted onto the higher bookshelf alongside books A and B.
Calculating change in GPE (higher tier)
Here is the equation for calculating gravitational potential energy.