The best way is to have a balanced diet.
A balance diet means having all the necessary nutrients at a correct amount. These nutrients include such as carbohydrates, fats, proteins, vitamins, ions, etc. For example, We should eat food with more carbohydrates but with less fat.
Some food rich in carbohydrates are such as bread, rice, and food rich in proteins such as beans, tofu etc.