How do you obtain spiritual gifts? (Overview) The Bible says we should covet earnestly the best spiritual gifts (1 Corinthians 12:31). How do various denominations recommend obtaining spiritual gifts?
Ask God.
So I say to you: Ask and it will be given to you; seek and you will find; knock and the door will be opened to you.
For everyone who asks receives; he who seeks finds; and to him who knocks, the door will be opened. Luke 11:9-10

The spiritual gifts are gifts of the Holy Spirit.
Indwelling of the Holy Spirit is something one asks God for.
And gifts have a purpose and direction in ministry.  By pursuing needs one finds God provides an answer.

All evangelical denominations have versions of this, some emphasising the more attribute gifts, of love, patience, endurance, joy, peace, while others say gifts of healing, prophecy, speaking in tongues is important.

All focus on dwelling more in God, in scripture, in seeking to help others.
Some emphasis holiness, and purity, while others listening to the right preachers and teaching.