There are diversities of gifts, but the same Spirit. There are differences of ministries, but the same Lord. And there are diversities of activities, but it is the same God who works all in all. But the manifestation of the Spirit is given to each one for the profit of all.
1 Corinthians 12:4-7 (NKJV)
There are similarities and differences between talents and spiritual gifts. Both are gifts from God. Both gain in effectiveness with use over time. Both are meant to be used for the building up of God's people, not for selfish ends.
1 Corinthians 12:7 affirms that spiritual gifts are given for the common good. While the two great commandments have at heart to love God and others, it is therefore appropriate to use one's talents for these purposes, namely the common good and the glory of God.
To whom and when are talents and spiritual gifts given?
A person (regardless of belief in God or Christ) is endowed with a natural talent resulting from: 1-: A combination of genetics (some have natural abilities in music, art, dance or math, etc.). 2-: An environment (growing up in a family of musicians will help develop a talent for music), 3-: Of God's desire to endow certain individuals with certain talents (eg, Bezalel in Exodus 31:1-6).
Spiritual gifts are given to all believers by the Holy Spirit, according to Romans 12:3-6, as they place their faith in Christ for the remission of their sins. At that time, the Holy Spirit gives the new believer the spiritual gift(s) He desires the believer to have for the building up of the church, according to 1 Corinthians 12:11.