Dear Student ,
The restoring force drives the body to move to and fro from its mean position .Look when a body is acted by some external force then the restoring force is the only force which can physically cause the body to perform to and fro motion which causes it a simple harmonic motion .
Regards