Gabapentin acts by modulating calcium channels to reduce neurotransmitter release, effectively managing various types of pain such as neuropathic pain, postherpetic neuralgia, and sciatica in clinical practice.