Neck and shoulder pain can result from sleeping on an unsupportive mattress or pillow or placing too much pressure on your neck and shoulders. Your mattress and pillow should keep your spine and neck aligned; sleep on your back whenever possible to minimize pain.