A small electronic device implanted in the body near the spine may someday replace other ways currently used to manage chronic pain, a new study suggests.