A medical branch block may be used to diagnose the cause of pain in the neck, middle back, or low back. Sometimes it may also be used to treat pain caused by the facet joints.