Nerve blocks can treat and diagnose the cause of your pain. Your doctor injects something to numb pain (an anesthetic) into nerve locations She may use an imaging test to find the best right place for the needle. Your response to the nerve block may help find out what’s causing your pain or where it’s coming from.