Nerve impingements arising from your lumbar spine: Your lower back can refer pain anywhere into your buttocks and legs. The area it refers to depends on which joint in your spine is at fault. If it is a joint high in your lower back you may feel pain in your hip also. This relationship is due the referral pattern of the nerve impinged. Treatment in this case should be by a suitably qualified physiotherapist or medical professional to the joint in your spine that is impinging the nerve.
A sedentary lifestyle can lead to having weak and tight hip flexors as they are always in the shortened position. Tight hip flexors can lead to a limited range of motion, poor posture, lower back and hip pain, and even injuries. These muscles need to get a workout when you are standing and doing movements such as raising your leg to climb stairs, run, or ride a bicycle.