Having an "urge" to do something means that you suddenly want to do it. For example:
I had the urge to smack him right across his face.
Do you ever get the urge to go out dancing?
"Wanting" something can happen over a short period of time or a long period, but "having an urge" is always sudden.