It is one's sense of one's own gender. It is the result of socialization, but it also has a biological basis.
Gender identity is sense of own gender, result of socialization and biology.
Ref: NCERT Class 12 Indian Society, Chapter 2 Social Inequality, Gender Module