The beautiful truth is that this has nothing to do with you. There's nothing you did, or didn't do, that's causing this.
To keep your love interest interested, follow these guidelines.
Contact is reciprocal, time is made to see each other, and forward movement is evident. The hot phase is designed to get you in the gate that leads to the corral, where you'll later be harnessed. Your partner begins to pull away making you long for their previous attention.
Whether initiated by a cold-shoulder, avoidance, or lack of communication... This phase activates loss, making you yearn for them and wait with bated breath for their call or text. These are the basic dance steps to this type of behavior. This formula is predictable and consistent even when your partner's reactions are not.
You wonder what happened and begin to question every move you made. Simply put, when you pull away, they'll re-engage you. After a cycle or two of this routine you'll be so confused you won't know which way to move.
Without realizing it, you've submitted to their need for emotional and psychological control. The pattern repeats itself for as long as you're willing to play this game.