It’s just hard

I dated a guy for almost a year. We got really close really fast. He was my best friend. The only problem was our sex life, and it did take a toll sometimes. He was 30 and couldn’t get it up at all. He told me it was his meds. We technically never had sex the whole time. It sucked but I loved being with him in general. He moved to Michigan then and we tried long distance. And that only worked for about 3 months. We broke up and stopped talking and then he came back into my life 2 months later. He drove down to see me one time and then after he left we stopped talking again. Fast forward a few months we started talking again and we made plans to meet up. The week we made plans he completely ghosted me. Deleted me off Facebook. Probably blocked my number idk. I just can’t understand how someone goes from telling me how much they care about me and miss me to completely shutting me off. I know it’s for the best obviously for so many reasons. I just want answers. I just feel stupid.