child theme appears again when I put the header with parent name.

Child themes will not work correctly without the parent themes folder name being in the child themes style.css file header as the Template Name:

If this was missing, then someone must have removed it from the style.css file and it would have been in there previously if the site was working before.