Scientists have recreated a pathway that senses pain, using clusters of human nerve cells grown in a dish.