I'm confused

Me and my ex broke up once and ended up sleeping with each other and than got back together and than dated for about 5 months and have broken up but continued to sleep with each other up until now I really miss him is it over or should I keep trying & he lives 4 hours from me