A compound of formula:wherein Ar1, A, R3, x, and m are as disclosed herein and Ar2 is a benzothiazolyl, benzooxazolyl, or benzoimidazolyl group or a pharmaceutically acceptable salt thereof (a “Benzoazolylpiperazine Compound”), compositions comprising a Benzoazolylpiperazine Compound, and methods for treating or preventing pain, UI, an ulcer, IBD, IBS, an addictive disorder, Parkinson's disease, parkinsonism, anxiety, epilepsy, stroke, a seizure, a pruritic condition, psychosis, a cognitive disorder, a memory deficit, restricted brain function, Huntington's chorea, amyotrophic lateral sclerosis, dementia, retinopathy, a muscle spasm, a migraine, vomiting, dyskinesia, or depression in an animal comprising administering to an animal in need thereof an effective amount of a Benzoazolylpiperazine Compound are disclosed.