Primary influences on one morality

What three factors are said to be the primary influences on one’s morality? What role does morality play in humanities?