At the amplitude of its oscillations, the system will have the maximum amount of potential energy, as it moves towards the equilibrium position, this potential energy is converted to kinetic energy so that at the centre of its oscillations, the kinetic energy is at a maximum, then as the system moves away from the equilibrium again, the kinetic energy is transferred to potential energy until it is at a maximum again and this process repeats for one full oscillation.