Nutrients, your liver function, and certain hormones play a big role in how you perform and recover from exercise. They can also affect your sleep — which is one of the most important things for helping your muscles repair themselves.