For an object to have gravitational potential energy only, it must be
At an elevated position with respect to the ground
A falling, moving and accelerating body has both potential as well as kinetic energy. Whereas, a body at an elevated position only has potential energy.