Gear pump

How does a hydraulic gear pump work?  Where is the actual tearing and wearing of the pump and why would you eventually have to change it. By the way, it is always a good idea to maintain clean oil for good preventive maintenance, search for "ISO 4406" in the search bar for maintenance videos.