The study of how the brain changes in response to environmental, developmental, or pathological stimuli.