In pendulum type motion, energy is conserved. The pendulum bob follows an arc so it rises and falls. You have potential energy being converted to kinetic energy as it falls, the KE converts to PE as the bob rises for the second half of its trip. There is a loss. It is air resistance. Once again the force on the bob due to air multiplied by the distance it travels is the work done on the air. The force is not constant because the bob speeds and slows.
With a ball dropping from a height, potential energy is continually being converted to kinetic energy. When it's halfway to the ground, half of the PE is converted to KE, etc,etc. When it hits the ground, all the PE has been converted to KE.
Energy is transformed when the ball hits the ground. Some is used up due to the deformation of the ball - the gas inside will warm slightly, work is being done deforming the ball and the ground and some heat is generated.
If you drop a ball on a hard surface, it never bounces as high as it was before dropped. This is because the collision is inelastic and energy is transformed into other forms.