I’m confused!

Recently I have really been lacking confidense like not trying just because I don’t want to fail but I know I can do it better than most people. I just feel ugly and like no one likes me even though I have a great group of friends that I love. How to I regain some confidence?

I know there might be some spelling mistakes so please don’t correct it in the comments