Sound to me Carole, that you could have one of a number of things.

Tension will definately cause upper back and neck pain, the only thing that will help that is to somehow try and relieve the tension with perhaps a mild sedative.....maybe try some relaxation techniques such as yoga.

You could also have a chill. Do you sleep at night with something that is more high collared ???
I used to get chills all the time, and was told by my doctor to always wear something that protects my neck from temperature variation at night.
You would be very surprised to know, that since then I have never had another chill. Thing is, when you go to bed at night the temp may be warm, and maybe you have a T-shirt or something like that on....during the early hours of the morning as you sleep, the temp drops and your muscles in your neck and upper back which are exposed, actually shrink...so when you turn in your sleep, you slightly stretch the muscles and they tear a little. The pain usually stays for two or three days.
Try sleeping with a pajama top or something that covers the back of your neck and upper back....and turn the collar up.

You could also have calcium spur growths in the upper part of your vertabrae. These will press against your spinal cord perhaps where the nerve is situated for your neck and upper back. I have such spurs, but they are a little lower and affect the nerves in my arms at times. Sometimes my arms ache for no reason, and it is because of these spurry growths in C5 and C6 of my vertabrae. The only thing that has fixed that is Fish Oil....I take a capsule of that every morning....it is very good. You can get that at any health food store.

But see your doctor first, try and get an answer from them as to exactly what it is that causes the pain....and go from there.
Wom