Reduce pain by putting an ice pack on the sore area, if it does not make any problem. Avoid more injury to the neck by changing the habits. The habits refer as the way you sit, sleep, etc. try to do some exercise which does not cause a problem.
Always try to have break in your job. This interval will make us to be relaxed. Move your neck up and down for sometimes.