In-combat, you can regain hit points from a magical healing spell or a healing potion.
Out-of-combat, you can regain hit points from resting. You must eat some food/water and sleep for at least 6 hours to rest. A rest allows you to regain 50% of your hit point total.