Ignore the first two posts.
SEX : Biologically, are you male or female?
GENDER: Culturally and socially, are you female or male?
Often times sex and gender is same for many people, but for some it is not the same.
You notice doctors ALWAYS ask you for your "SEX", not "GENDER".