When you have pulled a muscle in your shoulder the pain will feel like a tightness or knot in the muscle which feels like a spasm.
Usually the pulled muscle will heal and the pain will go away within 3 to 6 weeks on it's own but if it doesn't or it's bothersome you might want to see a doctor about it.