A perpetual motion machine is any hypothetical device powered by the energy produced by its own functions.
As of yet, no such thing exists in reality. This is due to the law of conservation of energy. Take, for example, a fan — we could not use it as a generator for itself because as it turns, it would be unable to produce as much energy as it needs to use in order to keep it turning against the friction of the air.