the basics are diet, exercise and sleep followed by curing any disease or parasite infections you have
you can also train yourself to more critically analyse problems presented to you and reading to broaden your exposure to ideas helps to consider new perspectives.
beyond that it's genetic