Built-in reactions to stimuli that govern an infant's actions are known as reflexes.
Reflexes are spontaneous and involuntary actions - they occur when you are suddenly scared (for example, of someone hitting you), or when you experience sharp pain (for example, touching a hot stove) - you will usually quickly flinch on an impulse thanks to these reflexes.