Advice to get back with an ex.

My ex and I broke up recently, and I know both of us messed up during the relationship. After he broke up with me I texted him some angry texts and I apologized. I dont know if he wants to get back together. Some days he says he wants to but other people are saying he dosent. I'm trying to go through the no contact period to see if anything changes, but I just dont know what to do. Any advice?