It means that if you don't take care of your mental health (how your mind feels), your physical health will suffer. You may perform poorly on tasks, your body will be fatigued, and you will lose motivation to do things.
Without good physical health (how your body feels), your mental health will decline. You might feel bad about yourself and your confidence will fall.