What is the function of the flagella?

A flagella enables an organism to travel. Flagella are whip like tails that are used to propel the organism forward.
The flagella is used for locomotion. It enables the cell to move in a fluid environment.