Hey!
The two phrases your looking for are
1. in past tense your leg was dead, so the phrase would be "I had a dead leg" or in present tense its sleeping "My legs gone to sleep"
2. You "got a cramp" or "had a cramp" in your leg while swimming in cold water