After a head injury due to an accident or a stroke, the brain repairs itself by making new wiring. If the new wiring is abnormal, it could cause seizures.