Text the ex type day

We only broke up four days ago. I really want to text him just to chat. I don’t really have many other friends. I think it might just be cause my period is soon and I’m feeling very emotional. I haven’t even gone this long without talking to him in ten months. I really want to wait for him to possibly text first though. Since he’s the one who broke up with me claiming we lost the “connection” but can still be friends. Should I just lock up my phone? How do I keep my mind off him when I’m sad and want him?