What could cause leg hip n back pain all at the same time?

Nerve or back muscle. It is common for a pinched nerve in the lower back to cause symptoms which cascade from the back to the hip and leg. Also, back spasms can cause muscle or nerve irritation which extends from the back to the leg. If it persists, see your physician.