It is said that humility is the mother of all virtues.
With that being said, then obviously pride is the cause of all sin.
With humility, all the virtues like purity, charity, obedience and kindness will follow along.
But with pride, then there will be selfishness, greed, impurity, lust; in a word, the seven capital sins.
The gospel parable reminds us that while the expressions of faith are commendable, faith is still a gift from God.
Without faith, then whatever works that we think are good may only be for our self-glory, as in the case of the Pharisee.
Yes, we must thank God for the gift of faith that enables us to do good works for His glory.
But we must also be humble to admit that we are sinners in need of God's mercy and forgiveness.
Then we will humbly and quietly go about doing the good that we are called to do.