How does the flagella operate within an organism?

A flagellum is a tail-like projection that protrudes from the cell body of certain prokariotic and eukariotic cells, and functions in movement.