Lots of factors can cause or contribute to neck pain. Poor posture, sleeping awkwardly, whiplash, muscle strain, nerve compression, degenerative joint and disc disease, can all be involved.