Reason could be he felt lonely, and he just thought and missed the old memories of him and his ex? Possibly but not confirmed. Would prefer you talking to him about it. And are you guys staying apart due to him acting this way? Not enough details to determine why he is texting him ex too