Have you ever eaten a bread and jelly sandwich? Jelly in the middle, and bread on either side.
If you just ate the bread without the jelly, it would probably be a little dry and tasteless. By the same token, if you just ate the jelly, it might be delicious initially, but soon you would decide it was too sweet.
That’s what I think Paul is saying in 1Corinthians 12 through 14.
Chapter 12 tells us about the spiritual gifts every Christian receives, and Chapter 14 tells us how to use these gifts to edify the church.
In-between is Chapter 13, that beautiful portrait of love...