As pointed out by Bronson, a dislocation can damage the labrum making the shoulder unstable. Torn rotator cuff muscles may also do so. If you cannot achieve stability by rehab then it might require surgical repair to tighten the capsule or repair torn cuff muscles.