with perfect clarity , he recalled what dr. sunderland had told him about how memories were formed , how abnormal brain activity brought on by trauma or extreme conditions could affect their creation and resurrection .