Injury to the joints can cause pain in the legs, lower back, groin, buttocks, knees, shoulders and hips. Pain may occur from injury, simple wear and tear or an inflammatory disease, such as rheumatoid arthritis.