The health part
is part luck, and part doing the things that have been shown to keep people healthy like eating right, exercising, and getting the right cancer
screenings and vaccines.
That's what checkups are for. To learn what is recommended at your age and gender get an iphone app called my health checklist. Happiness is harder to address, but just by asking you have taken a step forward.