The question is very simple:
Why does the moon or the earth or any another planet revolve anti-clockwise?
And can any planet (or satellite) revolve clockwise?
What is the physical law for this phenomenon?
First, let's settle a terminology issue. "Clockwise" and "counterclockwise" (the latter being known as "anticlockwise" outside North America) refer to the motion of the hands of a clock as viewed by a person looking at the clock face-on. As led to some confusion elsewhere on this site, everything gets reversed if you look at the clock from behind.
The same with the Solar System. Everything appears to go counterclockwise only when looking at it from the "North." If you look from the "South," everything appears to go the other way around. Thus you should always specify which direction you are looking from. "Clockwise" and "counterclockwise" themselves don't mean anything without such a direction specified.
Now on to astrophysics.
While there are still details to be hammered out, we have a reasonably good understanding for how the Solar System formed. A cloud of material began to collapse under its own gravity. Because the gas and dust particles in this cloud could bump into one another, they could exchange energy and angular momentum (important fact #1). Also, the cloud, even though it may have been close to spherical, likely contained some net angular momentum on the whole (important fact #2) - it is just unlikely that all the particles' motions would exactly cancel.
These two important facts, when taken together, mean the material is likely to settle into a disk. Particles whose angular momentum deviates from the average (by going in the wrong direction, by moving out of the preferred plane, by moving too fast in the right direction, etc.) will tend to be brought in line with everything else by these collisions. Gravity alone could accomplish this via dynamical friction, but collisions speed up the process so it occurs in reasonable time. Because important facts #1 and #2 are ubiquitous in so many astrophysical settings, many systems naturally form disks, for example galaxies.
The Sun, planets, moons, asteroids, and everything else then all formed from this disk, where everything was rotating with the same sense. As a result, most objects in the Solar System move in a plane, in the same direction. Furthermore, their spins are aligned the same way.
There are exceptions to this rule, but they are not common. They are interesting because they show the object in question does not have quite the same history as typical objects in the Solar System. Notable examples include: