An electric rotary pump uses a motor to rotate pumping elements (like gears, lobes, or vanes) within a tightly sealed casing. As they turn, these elements create expanding cavities at the inlet, drawing in fluid. The rotation traps a fixed volume of this fluid, sweeping it around the casing and squeezing it out through the discharge port.