Heart vs. brain

Me and my ex have been split for about 2 months now. We dated for a year and 9 months... We broke up because I felt like we were growing apart and I felt like I was becoming more mature than him. He also had problems disrespecting me. I've tried to move on. I still love him so much. I wonder all the time if I made the right decision by ending the relationship. Everyone's been telling me that I'm better off without him. But we still love each other. Sometimes all I want is to be with him but my brain is telling me that it's a bad idea, I broke up with him for a reason. I've just been thinking, if we still love each other so much, why not try and work things out? I'm just really needing some input on this. What would you do?