Imbalances in your hormones are triggered by bad food. If you eat sugar, you’ll produce more insulin, more estrogen, and more testosterone. Any type of flour and sugar can lead to these imbalances. Dairy and gluten are often triggers for inflammation and hormonal imbalances. Xenobiotics or environmental chemicals like pesticides in our food can act like powerful hormone disruptors and trigger our own hormones to go out of balance. If you are interested to know how these toxins disrupt our hormones then read Our Stolen Future by Theo Colburn.
Humans and other mammals have an XY sex-determination system : the Y chromosome carries factors responsible for triggering male development. The "default sex," in the absence of a Y chromosome, is female-like. Thus, XX mammals are female and XY are male. In humans, biological sex is determined by five factors present at birth: the presence or absence of a Y chromosome (which alone determines the individual's genetic sex ), the type of gonads , the sex hormones , the internal reproductive anatomy (such as the uterus in females), and the external genitalia.