Twisting or pulling hair can be due to boredom or an anxiety disorder. A doctor can help a person identify the cause of their hair twisting and pulling.