Teen-agers and young adults who intentionally hurt themselves engage in such behavior based, in part, on how they experience pain and their emotional distress, according to a new study.