Interacting with people takes a lot of practice! Very few teenagers are good at it yet. You sound like you have a few behaviors you would like to change for yourself, maybe you can make a plan how to work on that?
Being interested in a subject is not necessarily being a know-it-all. I would see if you can find other people interested in what you are interested in. I did not realize it until a few years ago that our eyes light up and we take on an interesting/interested demeanor when we are talking about something we feel passionate about and we are more appealing to others; the excitement we feel in our subject and how well we talk about it is contagious.
But the flip side of that is being genuinely interested in other people. Learn to recognize your natural curiosity about what others say and who they are and ask them about themselves. I practice on grocery store clerks

I notice if they yawn and ask them how many hours they have been working or have left to work or if the weather is nasty outside I'll comment on that and tell them if they are "lucky" to be inside if it is cold or wet out, etc. Go out (library, stores, restaurants) and practice talking to just regular people. Smile at babies in lines with their mothers and make a comment, start just talking to all sorts of people and observing, maybe writing about the people you meet; pretending you are going to write a short story and need "characters" and writing descriptions will help you notice those other than yourself and can be a fun hobby in and of itself.