Statement I: The simple harmonic motion is to and fro and periodic.
Statement II: The motion of the earth is periodic.
From the definition of SHM a particle execute SHM when it goes to and fro about a mean position under the restoring force.
The earth completes one revolution around the sun after a fixed interval of I year. Therefore, it is a periodic motion.