Gender and sexual orientation

Sex is biological while gender is the roles and identity a culture builds around it, children learn gender through social learning and schemas, and sexual orientation is an enduring attraction shaped by biology rather than choice.

From AP Psychology.