Dystonia may be caused by a problem in the brain. Certain parts of the brain handle messages about muscle contractions. These structures are called the basal ganglia.