Sex is the biological or anatomical aspect of an individual determined by their anatomy which is produced by their chromosomes , hormones and their interactions.
example as male and female
Gender is a social construction relating to behaviors and attributes based on labels of masculinity and femininity.
Example as social distribution of work for male and female like women will cook and man will earn for the family.