Sounds to me like you got yourself involved with a covert narcissist. That is the exact behavioral pattern of one. That was my experience over the last 9 years. First 3 we were just friends but he'd pop up and we'd talk everyday and then he'd disappear for months, then reappear. 4th year we got involved "romantically" and OMG what an absolute nightmare. It was more of the same pattern but we now have to include the chronic cheating, the porn addiction, the pathological lying, the back and forth emotions, the hot/cold, the super sweet and then super distant, the breaking up and then reconciling. It was an absolute nightmare. Thank your lucky stars and I'd suggest moving on or else you're in for a hell of a ride and more of the same pattern. Good luck!