"heat of the moment" is an expression related to strong emotions like passion or anger. In the heat of the moment, he kissed her. In the heat of the moment, she slapped him. "on the spur of the moment" is an expression related to impulse or a decision made at that moment. She decided to go to Spain on the spur of the moment. He decided to buy the model plane on the spur of the moment.