I believe it is just a muscular pain which is caused by bad posture.
Some time we do not keep a good straight posture while we are working.Especially when we work at computers.
When you sleep muscles come to rest and there is no pain but in activities when they are used they start aching.
Try massage of neck with tea tree oil twice a day everyday.
Keep posture straight.
Do not worry.