How do we make choices?

I often wonder, what is it that gives us the gift to make a choice. Is it ingrained in our genes, passed down from our ape ancestors or was this something that we are taught and we learn as we grow, by our parents and the external world? If we knew this, then can we…