Does the sentence use a simile or a metaphor?
The football soared through the air like a rocket.

 - metaphor
 - simile
The football soared through the air like a rocket.
The words football and rocket are compared using the word like. So, the sentence uses a simile.