Here "tongues" represents languages. Alternate translation: "had the ability to speak different languages" (See: [[rc://en/ta/man/translate/figs-metonymy]])
Paul is emphasizing that the gift of prophecy is greater than the gift of speaking in tongues. Alternate translation: "The one who prophesies has a greater gift" (See: [[rc://en/ta/man/translate/figs-synecdoche]])