Is survival instinct trained from pain or born with? So are instincts such as not touching fire or don’t touch sharp points trained out because we felt pain from them first (or heard it’ll bring pain from other)? Or are those instinct born with us?
Survival instinct in neuroscience has also been called a &quot;fight or flight&quot; response (Cannon 1929). It refers to the natural instinct of animals (humans included) in response to fear. This response has a neuroscientific basis and involved several brain regions. When a threat is perceived it activates the amygdala (known to be responsible for emotions), autonomic nervous system (that control involuntary function such as heart rate and breath), and facilitates the release of cortisol (stress hormone) and adrenaline.
This brain circuit is already present at birth and constitutes the first and impulsive response to threat. It is an evolutionary instinct developed by humans when predators threatened survival chances.
However, growing up, there are several other components to consider in &quot;survival instinct response&quot;. There is surely a learning component given by pain. Pain act as preservation, pushing us away from what is dangerous for us. An example can be fire. We were not born with the idea that fire is a threaten, however when we first touch it we feel pain. The feeling of pain at fire contact makes us learn that fire is bad for our survival, it is painful to touch. Therefore, in the future, we will have cortisol and adrenaline discharge when we are pushed towards fire sources.
To conclude and answer the question:

We are born with fight or flight instinct (mind that there is always an exception to the norm). This instinct is our primary response to possible threats to our life.
There is a learning component involving pain that refines our instinct. Pain teaches us important lessons on what else it is important to add to our threat list. Furthermore, this instinct can be inhibited (with training or drugs).

References:

Milosevic, I., &amp; McCabe, R. E. (Eds.). (2015). Phobias: The Psychology of Irrational Fear: The Psychology of Irrational Fear. ABC-CLIO.
Jansen, A. S., Van Nguyen, X., Karpitskiy, V., Mettenleiter, T. C., &amp; Loewy, A. D. (1995). Central command neurons of the sympathetic nervous system: basis of the fight-or-flight response. Science, 270(5236), 644-646.
McCarty, R. (2016). The fight-or-flight response: A cornerstone of stress research. In Stress: Concepts, cognition, emotion, and behavior (pp. 33-37). Academic Press.
Derakhshan, A., Mikaeili, M., Nasrabadi, A. M., &amp; Gedeon, T. (2019). Network physiology of ‘fight or flight response in facial superficial blood vessels. Physiological measurement, 40(1), 014002.