The correct sentence is: "Me lastimé el tobillo cuando estaba jugando fútbol."
This sentence uses the correct past tense conjugation of the verb "lastimarse" (to injure oneself) in the first person ("me lastimé"), and the structure is appropriate for describing an event that happened while playing soccer.