Why would he want to push me away, then pull me back?

One minute it really seems like he cares, the next minute he doesn't have a clue how he feels or wants to say that he doesn't and then after a while, he'll come back. It's like a cycle.

Why would a guy do this?