A breakup is what happens when two people break up. The one-word form is the result, whereas the two-word form is the action that leads to it.