The energy source of the sperm for them to swim is the protein breakdown by mitochondria in the midpiece of the sperm.
Mitochondria are double membrane-bound organelles found in the cells. It is said to be the "powerhouse of the cell". They provide ATP as a source of chemical energy for the cells.