The spinal ganglia or dorsal root ganglia contain the cell bodies of sensory neurons entering the cord at that region. nerve - a group of fibers (axons) outside the CNS. The spinal nerves contain the fibers of the sensory and motor neurons.
Hope this helps!:)