Without enough vitamin D, new bone can't be hardened with minerals. The bones become soft and ache.
Osteomalacia is softening of adult bone, usually from vitamin D deficiency; in children it is called rickets. Causes include low sunlight or dietary intake, malabsorption, CKD, liver disease and anticonvulsants. It causes bone pain and tenderness, fractures and a proximal myopathy with a waddling gait. Bloods show low vitamin D, low calcium and phosphate, and a raised ALP. X-rays show Looser's zones (pseudofractures). Treatment is vitamin D, often with a loading dose.