Vitamin B12 is crucial for the maintenance of myelin sheaths that insulate nerve fibers. Deficiency can lead to demyelination, particularly affecting the dorsal columns and lateral corticospinal tracts in the spinal cord. Histologically, this manifests as spongy degeneration and vacuolization in the affected areas, which can be visualized using special staining techniques.