Missing my ex

Sooo I recently just broke up with my ex because we were acting just like friends and he never really texted me unless I did first and it was just a friendship and thats what I told him when we broke up and I also said I don't want it to be awkward, but now I'm regretting breaking up with him and I miss him so much, I don't think I gave him a chance. Is there any advice that anyone could give me x