The word pledge in make a pledge is a noun. Pledge in to pledge on the other hand is a verb. The words express the same meaning in both contexts and are just in different forms.
Ex: I made a pledge to volunteer tomorrow.
Ex: I pledge to follow the rules.