If a body is executing simple harmonic motion, then:
At extreme position kinetic energy is zero, total energy in the form of potential energy. At equilibrium kinetic energy is maximum but potential energy may or may not be zero. (Example vertical oscillations of spring)