The first sentence is correct.
The second sentence should be: "I sprained my ankle last night during the basketball game."
The title of your post should be: "Sprained ankle". Saying, "Sprain ankle," which might seem the same, or close enough, to you, is not correct. This grates on native ears, and immediately marks you as someone unfamiliar with the language.