The main lifestyle factors that affect health are: diet, exercise, sleep, stress, and avoiding harmful substances (tobacco, alcohol, drugs). Each of these is something you can control.
Check: What are the five main lifestyle factors that affect your health?