Thank you for your query on Healthcare Magic.
It seems you are having an infection like bacterial, or fungal, or dandruff
in the scalp
due to which the lymph nodes on neck and above ear are enlarged, tender, and painful.
The scalp has to be treated with topical antibacterial or antifungal applications in the form of cream or shampoo depending on the type of infection.Oral antibiotics
may be needed if there is extensive infection.
I advise you to consult the dermatologist
for examination and prescription of medication.
Hope I have answered your query.