Serotonin is a chemical messenger that helps control mood, feelings cost of trazodone pills well-being and appetite. Serotonin’s also important for controlling sleep and wake cycles. Zoloft (Sertraline) works by helping to restore the balance of serotonin in the brain, which ensures we feel good, happy and healthy.