An occipital nerve block may be used to diagnose the cause of pain in the:  Neck. Scalp. Near the ear.