1. Every sin of the rational creature comes of its not submitting in obedience to God. Now punishment ought to correspond and be in proportion to offence, so that the will may be penally afflicted by enduring something the very reverse of what it sinfully loved. Therefore it is a proper punishment for a sinful rational nature to find itself subject by a sort of 'constriction' to bodily things inferior to itself.
2. The pain of sense answers to the offence in respect of its being an inordinate turning to some changeable good, as the pain of loss answers to the offence in respect of its being a turning away from the Unchangeable Good (B. III, Chap. CXLVI). But the rational creature, and particularly the human soul, sins by inordinate turning to bodily things. Therefore it is a befitting punishment for it to be afflicted by bodily things.
Though the promises in Scripture of corporal rewards, like meat and drink (Isai. xxv, 6: lxv, 13: Luke xxii, 29: Apoc. xxii, 2), for the Blessed, are to be taken in a spiritual sense, nevertheless some corporal punishments, with which the wicked are threatened in Scripture, are to be understood as corporal punishments in the proper sense of the terms used. For though it is not becoming for a higher nature to be rewarded by the use of something inferior to itself: rather its reward should consist in union with something higher than itself: nevertheless the punishment of a superior nature may fittingly consist in its being rated with things inferior to it. Some, however, of the corporeal imagery that we find in Scripture, speaking of the pains of the lost, may very well be interpreted in a spiritual and figurative sense. Thus in the saying, Their worm dieth not (Isai. lxvi, 24: Mark ix, 44), by the worm may be understood the remorse of conscience with which the wicked will be tormented: for it is impossible for a material worm to gnaw a spiritual substance, or so much as the bodies of the damned, which will be imperishable. Weeping and gnashing of teeth too (Matt. xiii, 42) can only be understood metaphorically of subsistent spirits; although in the bodies of the lost after the resurrection the phrase may be taken to have its bodily fulfilment, -- not that there can be any flow of tears, for there can be no secretion from such bodies, but the weeping will mean pain of heart, trouble of eyes and head, and such usual accompaniments of weeping.
4.89 : Of the Quality of Risen Bodies in the Lost
4.91 : That Souls enter upon Punishment or Reward immediately after their Separation from their Bodies