Based on your description the skin condition, it appears that you have Seborrheic dermatitis. Sometimes they co-exist with dandruff and can be determined with more precision during a consultation. A photograph will add in obtaining better recommendations. Kindly consult a dermatologist for exact diagnosis and treatment plan. It is also important to prevent their relapse once you have got it cured.
Next Steps
Alopecia Areata should be ruled out by meeting a Dermatologist.
Health Tips
You can consult me online for personal recommendations.