These three chapters should be read together as a single unit, because Paul is teaching a single theme: that which is of the Spirit, to edify the Body.
Now Pentecost, or the Feast of Weeks, or Shavuot, falls this Sunday! On this day, the Spirit and the gifts of the Spirit were poured out onto the Church (Act 2). Also on this day, Moses received the Ten Commandments written with the finger of God on two tablets of stone (Exo 19-20). The post above, that which is of the Spirit follows a prescribed path, goes into more detail on the teaching in 1 Cor 12-14, the gifts of the Spirit, and the feast day of Pentecost which we are celebrating this weekend!