You are probably suffering from folliculitis of scalp which means theres inflammation in your hair follicle which is causing pus discharge.you will have to take oral medications and apply topical antibiotic cream and shampoo.
Next Steps
kindly visit dermatologist
Health Tips
don't try to prick the lesions on scalp it will increase the chances of infection.Donot apply talcum powder.