Why Genetics Matter in Mental Health. Your brain function is closely tied to chemical messengers like serotonin, dopamine, and GABA. These neurotransmitters influence mood, focus, sleep, and emotional stability. The production and regulation of these chemicals depend heavily on enzymes and metabolic pathways that are influenced by your genes.