Race memory
Ancestral memory, also known as race memory, was a memory present at birth in an individual due to racial history. This resulted from an event repeated enough times that it was incorporated into a species' genome.
Humanity had race memories of Transcendental Beings like Kronos (DW: The Time Monster) and the Great Old Ones, preserved as nightmarish creatures of chaos. (BFA: The Roof of the World) The memory of them or they themselves could be reached using mind-expanding drugs. (NA: White Darkness) Some humans also had an ancestral fear of Silurians, causing mental breakdowns. (DW: Doctor Who and the Silurians)
The Tractators once invaded Trion, causing future Trions to be terrified of them. Turlough went into shock after seeing Tractators as they awakened the ancestral memory within him. This allowed him to remember how the Trions had previously defeated the Tractators by separating them from the Gravis. (DW: Frontios)
The Wirrn had race memories from their larval state and by absorbing one member of another species could obtain that race's whole technological history for their benefit. (DW: The Ark in Space)