Without examination,it is very difficult to confirm a diagnosis but it can be folliculitis or boils. Boils are caused by infection of the hair follicle
aureus. Bacterial skin infections can be spread by shared cosmetics or washcloths, close human contact, or by contact with pus from a boil or carbuncle.
Folliculitis is the inflammation of one or more hair follicles. The condition may occur anywhere on the skin.
Folliculitis starts when hair follicles are damaged by friction from clothing or blockage of the follicle. In most cases of folliculitis, the damaged follicles are then infected with the bacteria Staphylococcus (staph).
Pls keep the area clean and apply cold compresses and some topical antiseptics. Topical antibiotics such as mupirocin or neomycin containing ointment are also useful.In case the symptoms persist then oral antibiotics may be needed.Pls consult a dermatologist in that case.For the pain,you can take some over the counter anti inflammatories like ibuprofen or acetaminophen(Tylenol).
Hope it helps.Take care and pls do keep me posted on how you are doing and if you have any additional queries.