Anti-anxiety medications aid in easing the effects of anxiety, including panic attacks and extremely high levels of fear and concern. Xanax works by increasing the levels of a neurotransmitter called GABA in the brain, which helps to calm the central nervous system.