Why does it hurt lifting my head from the pillow? I've been having neck pain that expands to shoulder (2 weeks

So far, pain relievers don’t help much. Ice packs help reduce the neck pain but not lifting the head from the pillow while lying down on my back or sideways.