The Neural Basis of Behavioral Sequences in Cortical and Subcortical Circuits