If you were able to look down upon the Earth above the North Pole, you would see the planet rotating counterclockwise. For an observer on the planet surface, this motion generates the illusion that the Sun "rises" in the east and "sets" in the west. All planets in the Solar System rotate about their axes in this manner; only Venus and Uranus are exceptions, the one rotating clockwise, and the other curiously rotating on its side with respect to its orbit about the Sun. Moving further away from Earth's North Pole, you would notice that it, along with all the other planets, orbits about the Sun in a counterclockwise direction.
Why the planets share this general motion is a clue to how the Solar System formed. The swirling eddies of debris attending the birth of the Sun all moved in the same direction, coalescing over the eons into the planetary bodies.