Our cultures teach us about values. For instance, in the Israeli communities, family values are stressed because of their beliefs in the importance of historical lineage and inheritance. Their culture teaches values about sex, values that are aimed at keeping together. Men that are lacking in cultural values are apt to have many sexual partners simply for the fun of it. Cultural values can also be shaped by religion.
Sexual behavior can change from promiscuity to celibacy by religious teaching.
For example, a Christian male would be taught that fornication is a sin before God. If he learns and accepts this teaching, he will remain celibate to please God. Priests adhere to this code of celibacy. Clearly, if one believes in Christian teaching, his sexual behaviors will be shaped by what he is being taught, and not by what is passed down to him by his dominate, hunter, gathering ancestors. Evolutionary psychology would argue that men and women are hardwired to have sex to reproduce high quality offspring and send their genes into the future.