Yesterday I felt my shoulder almost come out of my socket and it still hurts 2day and I can't shoot a basketball anymore what happened?
You should maybe go see a doctor.
Maybe it twisted or you have a muscle pull. Try getting some relaxing massage or applying deepheat for you to relax the muscles. You also need to see a medical officer so as to be checked what the exact problem and prevent further complications.
See a doctor, otherwise it will get worse over time if it's something bad.