Let's talk gender, from what I've learnt so far.
When a foetus is in the womb, it has between its legs something caller bi-potential tissue. This tissue can grow into male reproductive organs or female reproductive organs or something that resembles both/neither.