Eating healthily, exercising regularly, getting enough sleep, and avoiding harmful levels of alcohol and other drugs can help you keep your mental health on track.