This is due to fungal infection and dandruff. That cause weakness of hair root so that ur hair fall. And as u describe ur painful complain it seems as boils condition. Bt proper analysis is must and it occur with the help of proper consultantion.
Next Steps
Take homeopathic treatment it grow ur hair again. further any query u consult direct or go to doctor nearby u.
Health Tips
wash ur hair properly.
apply oil in scalp and massage it. it provide nourishment to ur hair. use mild shampoo and take healthy diet.