Thanks for writing to us
From the description you have given, we could be looking at a hip dislocation or a ligament tear as well. The only way to know would be to get a Xray of the pelvis done ( both AP and lateral views). Please do not ignore this. The head of the femur
( the thigh bone) has a precarious blood supply and such a dislocation (if not taken care of) can permanently damage this head leaving you in pain for a significant portion of your life.
Please see your GP and get a Xray done. if the Xray is normal, we would need a MRI
to make sure that all is well.
If its a hip dislocation, you would need to see an orthopedic surgeon to get it fixed. Till then, some hot compresses and Tablet Motrin
1 tablet 2-3 times a day with food can be taken for pain relief.
Hope that helps