Equipped creature gets +2/+2.
As long as equipped creature has defender, it can attack as though it didn't have defender.
Equip {3} ({3}: Attach to target creature you control. Equip only as a sorcery.)
If the equipped creature doesn’t have defender, the second ability simply doesn’t affect it.
The second ability doesn’t cause the equipped creature to lose defender. It just lets it attack.