Not sure why the sex wouldn't be recorded, but my grandparents had a child who died at 2 days old and they didn't give her a name, she's just recorded as "female" on her birth, death and burial records.