OpenStax Anatomy and Physiology
The spongy bone and medullary cavity receive nourishment from arteries that pass through the compact bone. The arteries enter through the nutrient foramen (plural = foramina), small openings in the diaphysis. The osteocytes in spongy bone are nourished by blood vessels of the periosteum that penetrate spongy bone and blood that circulates in the marrow cavities. As the blood passes through the marrow cavities, it is collected by veins, which then pass out of the bone through the foramina.
In addition to the blood vessels, nerves follow the same paths into the bone where they tend to concentrate in the more metabolically active regions of the bone. The nerves sense pain, and it appears the nerves also play roles in regulating blood supplies and in bone growth, hence their concentrations in metabolically active sites of the bone.
Betts, J. G., Young, K. A., Wise, J. A., Johnson, E., Poe, B., Kruse, D. H., … DeSaix, P. (n.d.). Anatomy and Physiology. Houston, Texas: OpenStax. Access for free at: https://openstax.org/details/books/anatomy-and-physiology