Earth has both translatory as well as rotatory motion. what makes it possible
Translatory motion is when earth revolves around the sun in it's orbit. The position of earth is changing with respect to it's initial position in space.
Rotatory motion is one in which the earth revolves on it's own axis.