Massage is really great for sore neck. However, the best thing is to eliminate the cause. Demonstrating correct posture, stretching frequently, and changing your pillow may be able to help.
Try moist, warm compresses on the neck to draw additional blood to the area. Hopefully your neck is stiff from being in a stressed position and as the muscle is warmed it should relax and allow more, pain-free, movement.
Apply a warm heating pad to sore areas while relaxing, then do some very gentle neck stretches. If that isn't enough, take a low-dose pain killer such as ibuprofen or acetaminophen.