Mostly it is Herpes
type 2 infection of Genital.
Thanks for your query,based on the facts that you have posted it appears that you have
I shall be happy if you can post me few more details to help me in making comments on your problem.
1) Did you have unprotected sex before you noticed these lesions?
2) Does your female partner have Herpes infection?
3) Do you have itching at the site of lesions?
4) Is there discharge from these lesions?
Based on photographs that you have uploaded it seems to be Herpes type 2 infection which is transmitted through contacts with infected person.
Please get basic test of secretions from lesion done to confirm the diagnosis.
In the mean while start taking antibiotics like Doxicycline and anti viral drugs like Acyclovir
twice daily along with topical antiviral
cream for local application.
Ensure to wash your genitals with warm water twice daily
Ensure to avoid sexual encounters till it heals up completely.
Hope I have answered your query ,please feel free to ask if you have more questions ,
I shall be happy to help you
Thanks and Regards.