buy some of that Lioton gel for your muscles and it will get the pain away. An anti inflamatory or similar drug can also help, doesn't ever hurt to take some aspirin with vitamin C for a couple of days, or paracetamol.
If the pain is there for long time, you feel uncomfortable, etc, by all means cut the crap and go to a doctor, if you have some stuff in your leg that could get serious it's much better to know sooner than later.
But looking at what you say, it's just a muscle pull. You get cramps when your muscles are lacking oxygen basically. So breath. :rotfl: