IWTL how to stop being so stupid

This is extremely difficult to get off my chest. I keep thinking about things in the past that happened. When I was in high school, I was being mistreated by my peers and teachers in high school as someone who is a complete idiot. I kept asking my peers questions about the meaning of life and other bad things.

I keep doing the same things and asking stupid questions all the time. People keep laughing at me and I want to stop it. I don't mean to ask it on purpose but I keep saying and doing dumb things too much. I think that I have a neurological issue with my brain that causes me to do this. This is why I can't talk to people. I want to improve my intelligence and become a smart person. What can I do?