A motor-driven air compressor operates by using an electric motor to power a pump (piston or rotary screw) that draws in atmospheric air, compresses it, and stores it in a tank for use. This motor converts electrical energy into kinetic energy to create high-pressure air for tools and industrial processes.