Acute pain, pain that has not been there for long, usually goes away with conservative care.
Most often triggered by sore muscle that go into spasm or become inflammed. Underlying reasons are numerous. Use ice, heat, 15-20 min each, stretch and rub. If it doesn't go away in a week, talk with your doctor.