Sex is biological, it’s about your body and the physical parts that people use to decide if bodies are male, female or not clearly just on or the other.
Gender is how society thinks we should look, think and act as either males or females.
Gender identity is how we feel about our sex and our gender and how we express those feelings with how we dress and act.