Methods for modifying neuronal functional activity and/or treating a neurological disorder by using agents that raise neuronal intracellular concentration of magnesium are disclosed. Also provided herein are methods of determining the amenability of an individual to treatment for a neurological disorder, by measuring changes in intracellular magnesium concentration.