Can a trapped nerve in shoulder or neck cause pain behind the ear and in face?

Yes it could. The nerves which give sensation to the back of the scalp come from the upper three nerve roots of your neck area. If one of these are "trapped" it could cause pain. There are a number of other causes to consider if you're having pain in that area. You should consult your physician for a full examination/evaluation.