Then when he says, There are varieties of gifts, he begins to distinguish the charismatic graces: first, he distinguishes them in general; secondly, he manifests each in particular (v. 7).
In things conferred by the grace of the Holy Spirit three things must be considered. First, indeed, men's faculty to work; secondly, the authority; thirdly, the execution of both. The faculty is had by the gift of grace; for example, by prophecy or the power to work miracles or by something of that sort. The authority is had through some ministry; for example, by the apostolate or something of that sort. Ex...ecution pertains to operation. First, therefore, he distinguishes the graces; secondly, the ministries; thirdly, the operations. In regard to the first, therefore, he shows the need for grace which, nevertheless, does not come in its totality to all, but only to Christ, to Whom the Spirit was given without measure, as it says in John (3:34). But in regard to others there are divisions of graces, because some abound in one and some in another. For as in a natural body the head has all the senses, while the other members do not; so in the Church Christ alone has all graces, which are divided in the other members. This is signified in Gen (2:12) where it says that a river, namely, of graces, flowed out to water the garden, and there it divided and became four rivers; and in Matt (25:15) it says that "to one he gave five talents, to another two, and to another one." And although the gifts of graces possessed by diverse persons are diverse, they do not proceed from diverse authors, as the Gentiles believed, who attributed wisdom to Minerva, speech to Mercury, and so on for other gifts. To exclude this, he adds: but the same Spirit, namely, the Holy, Who is the author of all graces: "One body and one Spirit" (Eph 4:4); "The Spirit is one and manifold" (Wis 7:22): one in substance, manifold in graces.
Source: Commentary on 1 Corinthians