Advice?? For problem with an ex

My ex broke up with me and idk really why but we were so happy and the relationship was so good so after we stayed friends and still talk. A month later he texted me say he misses me and he regrets ever leaving me and he is really sorry and that I probably already moved on. I told him how I felt and then said do you want to maybe try again he just said we can’t . I asked why and he said because. Like I’m so confused and I really like him it’s a week later now and I just can’t stop thinking about it and idk what I should do. Should I try to get him back or just walk away and leave him alone. Any advice would work please I just need help.