How can you boost your mental health when unhappy and sick?

Can being sick affect mental health