During an embryo's development, the neural tube forms first, which later becomes the brain and spinal cord. It originates from the ectoderm, the outermost of the three germ layers. The head then forms around the neural tube, providing protection for the developing brain and other structures.