Nerve cells never reach the end of the bowel. That segment can't push stool along, so the bowel above it backs up.
Hirschsprung disease is an aganglionic segment of bowel, lacking the Auerbach and Meissner plexuses, due to failed neural crest cell migration. This causes a functional obstruction. It affects about 1 in 5,000 births, more often boys, and is linked to Down syndrome. Neonates present with delayed passage of meconium; older children have constipation and distension. An abdominal X-ray may be done first, but the gold standard is rectal biopsy. Start with rectal washouts, then surgical resection of the affected bowel.