The basic definition of sex is "the biological state of being female or male." This is in contrast to gender which is the social and personal state of being female or male.
I think this definition is fine for most conversations, but advanced conversations may require peering into the subtleties of what actually happens in the human body regarding our sexes. I describe that in What Is Sex Exactly?.
Trans & Gender 101 >