Pain especially in neck near ear can be from different causes and but radiation to shoulder indicates that there could be some stress on nerves or spine , or simply could be muscular pain which is more common .
Next Steps
get your self checked with ENT surgeon if clearly in neck and orthopaedist too for ruling out neck sprain ..
Health Tips
careful not to use mobile , laptop in odd position for long periods and good small neck pillow during sleep should help .