Thanks for your query.Based on the facts that you have posted it appears that you have acquired Fungal Infection
of genitals called as Muco Cutaneous Candidiasis
Please starttaking anti fungal medications like Fluconozole orally twice daily along with topical anti fungal cream for local application .
Get the prescription of medicines from your family Physician.
Ensure to clean your genitals with warm water twice daily.
This will get cured within a week.