Elastic energy is potential energy and mechanical energy is kinetic energy.
Many times, elastic energy is a consequence of mechanical energy. When energy is transferred to an object through mechanical energy, it can often displace or deform the object. This stored energy because of the deformation is called elastic energy.