When the child accepts and becomes comfortable with its gender, it also follows the appropriate gender role. Gender role is the set of rules that are laid down by the society to tell us how to behave according to our sex or gender.
These rules are made by our culture and not by biology. The rules of the gender role apply from the moment of birth. If there is any confusion or non-acceptance of one’s own gender, then it leads to a gender identity crisis.