in simple harmonic motion, at the equilibrium position, there is no net force
in a pedulum, it is because the strings force of tension balances gravity
in a spring, it is because the spring is uncompressed and puts no force on the mass.
i.e., net force = mass x acceleration.