You always have the Counterspell and Dispel Magic spells prepared. In addition, you can cast Dispel Magic as a Bonus Action, and you can add your Proficiency Bonus to its ability check.
When you cast either spell with a spell slot, that slot isn't expended if the spell fails to stop a spell.