Why won't my perpetual motion machine work?
Perpetual motion machines are one of the true holy grails of physics; unfortunately, perpetual motion machines do NOT EXIST according to the currently accepted theories. They are denied by the Three Laws of Thermodynamics, which are proven by statistical mechanics, which is derived from quantum mechanics, which has been verified experimentally enough that it would be silly to deny it!
The First Law of Thermodynamics states that Energy is Conserved. This means that the total energy of a closed system must remain constant. The universe, considered as a closed system, thus has constant energy.
Energy exists in many forms: as heat, kinetic (motion) energy, and potential (gravitational, electric, and magnetic) energy, to name a few. The energy can change from one form to another. It can also pass from one system to another. Still, the total energy of a closed system will always be constant. You can neither create nor destroy energy; it always moves elsewhere.
The Second Law of Thermodynamics states that The entropy of a closed system must always increase. The entropy is a measure of the disorder of a system. If you consider the universe itself as a closed system, then the entropy of the universe must always increase. Therefore, the universe is continually moving towards a state of greater disorder!
Consider a glass of water, sitting initially on a table. You decide to push it off the edge and it shatters into fragments. It is now in a more disordered state, so it has greater entropy. The process can never reverse itself; you can't reassemble the glass and put the water back in it.
Now a perpetual motion machine has, by definition, moving parts. The motion results in the transfer of heat through friction and air resistance. This results in a loss of energy by the device; the First Law implies that the total energy of the universe is conserved, so the energy is actually being transferred elsewhere.
Assuming you don't add energy to this system, its energy will continually decrease and its entropy will likewise increase. Eventually it will slow and stop. Therefore, there is no such thing as a perpetual motion machine.
However, you're welcome to try...