Hello,
It can be due to dandruff or seborrheic dermatitis. Eat a healthy diet. You can also take vit B6 and vit A and E which are good for hair and skin. Try medicated shampoos for dandruff. There are a number of over-the-counter shampoos available that can help. The most effective ingredients -- antimicrobials -- to look for are zinc pyridinethione, selenium sulfide, sulfur and ketoconazole (also available by prescription).
It is very difficult to precisely confirm a diagnosis without examination and investigations and the answer is based on the medical information provided. For exact diagnosis, you are requested to consult your doctor. I sincerely hope that helps. Take care and please do keep me posted on how you are doing.
Get the NEUTROGENA coal tar shampoo it will probably solve your problems.