When you lift an object up off the ground, it has potential energy due to gravity.So when you roll a ball down a ramp, it has the most potential energy when it is at the top, and this potential energy is converted to both translational and rotational kinetic energy as it rolls down.