A nerve block works by temporarily or permanently disrupting the transmission of pain signals. The medications injected can provide immediate relief by numbing the area, while steroids can reduce inflammation and swelling, offering longer-term pain relief. The effect of a nerve block can vary from a few hours to several months, depending on the type of block and medication used.