The difference is that some have particular uses, though they all can mean the same thing.
Vows are exchanged at a wedding.
Allegiance is pledged.
One swears to tell the truth in court.
In many other situations, though, they can be used almost interchangeably.