Once infected the herpes virus lives dormant until triggered. If you have it on the lips then there are antiviral creams that may speed up healing time if applied at the first tingling sensation before the blisters appear, you can buy these at the pharmacy. If on the genitals or elsewhere, then you may want to visit your doctor or sexual health clinic who can swab the area and confirm diagnosis and prescribe antivirals. Your body will build a stronger immunity to it, people usually break out when they have low immunity, unwell, or stressed, etc. When having intercourse use protection to avoid passing on infection. Herpes can appear asymptomatic, so you can catch it without symptoms being visible.
www.aad.org/dermatology-a-to-z/diseases-and-treatments/e---h
www.m.webmd.boots.com/a-to-z-guides/genital-herpes-symptoms