Hi. My first guess would be that the swollen lymph node is the result of some infection, fungal or bacterial, in that area - such as the ear of scalp.
Pain in a swollen node usually means that the node has expanded in order to fight infection. The inflammation might have extended down your neck via a lymphatic vessel.
thank you for your reply the doctor confirmed exactly what you said it was im so greatful that you replied :)))