The largest genetic study of pain to date identified new biological roots in the brain — and gave hints for research into both prevention and treatment.