For simply harmonic motion, acceleration $= -\omega^2 x$, where $\omega$ is the angular frequency.
Within limits of Hooke's law, the restoring force on the spring is given by
$$F= -k \cdot x$$
This force fits the simple harmonic motion condition with $k=\omega^2m$.
But, we have $F = 0$ for $x=0$.
If I displace block (of some mass) attached to a spring (massless) rightward (on horizontal plane), and then release it, it would accelerate leftward because of above spring force.
But at the moment when $x=0$, $F=0$ and thus $a=0$.
Then why does the spring block system experience simple harmonic motion?
Or why would the block accelerate farther leftward if there is no force on it?
I'm confused.