One approximate way of looking at this is that the brain's motor cortex sends a "go" signal to the spinal cords CPGs and these start generating the signals to the muscles to walk. You can also think of motor control as hierarchical where as you go up the hierarchy. The bottom of the hierarchy are the muscles/actuators, then the neurons that stimulate the muscles, then the circuits in the spinal cord that have these CPGs and other "primitives", then primary motor cortex and further up the cortical hierarchy. At the higher levels of the cortical hierarchy are representations of whole movements, like moving your hand to mouth. As you descend the hierarchy, the neural signals control gradually more details components of the movement. For more, look up the work by Michael Graziano.