If someone or something is in shape, or in good shape, they are in a good state of health or in a good condition. If they are in bad shape, they are in a bad state of health or in a bad condition.
...the Fatburner Diet Book, a comprehensive guide to getting in shape.
He was still in better shape than many young men.
The trees were in bad shape from dry rot.