From the limited information and pictures you have provided I can make out that you are suffering from seborrheic dermatitis which has the tendency to get aggravated at times. We need to treat this condition as per severity , you need to use proper shampoo depending on current condition.
Next Steps
Consult a dermatologist who will do proper examination of affected part and also check other areas which may be affected like nose, behind ears,etc
Health Tips
Avoid scratching affected areas as it may lead to bacterial infection and pain.Avoid self medications and hair oil,gels, etc as such products can aggravate this problem.