To give you a better answer i would need a little more information.
If this is a sudden pain it could be a fracture
. If this has been there for a while it could be a pinched nerve
or a swelling around the joint called capsulitis.