The nervous system develops from the ectoderm germ layer as a flat sheet forms called the neural plate. This plate invaginates to form the neural groove. Offshoots  of this plate called the neural folds develop into neural crest cells which form most of the PNS, while the neural groove completely encloses to form a neural tube which becomes the CNS.