Chromosomes determine if u have a penis or a vagina. There are 2 possible combinations XX which will make u a female and XY which will make u a male. Hormones imballance is a illness.
It's not just Chromosomes. We have many XY Male chromosome people today with vaginas. And vice versa.