I think you've got performance anxiety.
So let me suggest something different -- doing something else in front of people. As in, drama club, or public speaking, something like that. Get in front of people more, so that it won't feel quite so hard when you have to do it for basketball.
And hang in there. Growing up ain't easy.