There isn’t a universal reason why guys go hot and cold - it all depends on the situation. For example, they might play hot and cold because they aren’t 100% sure they like you. Another reason might be that they want you to chase them, or he is simply dating you just for fun. He might be bored and uses you as a form of entertainment.