From history it seems that you might be having some problem in your lower spines.
If you are elderly then there might be having degenerative changes in your lower spines giving irritation ot pressure on nerves giving rise this problem.
go for x-ray lumbo-sacral region.
Consult orthopedic surgeon and get examined.
Go for physiotherapy
Take calcium and multivitamin
Ok and take care.