The earth moves in (roughly) uniform circular motion about the sun. In this example the sun is the axis of rotation, and it is external (not part of the earth). Gravity provides the centripetal force that keeps the earth in it's orbit. The earth also spins or rotates about it's axis. This rotation is around an internal axis, and the entire mass of the earth is spinning as the earth rotates.