A mass on a spring and a simple pendulum are the two standard examples of SHM. For the mass-spring system the restoring force is F = −kx, so the period depends only on the mass and the spring constant. For the simple pendulum swinging through a small angle, the period depends only on its length and on g. The mass of the bob and the amplitude make no difference.
During the motion, energy changes back and forth between kinetic and potential. At the extreme positions it is all potential energy. At the mean position it is all kinetic energy. With no friction the total energy stays constant and is proportional to the square of the amplitude.