Tonic, subdominant and dominant
In every key there are three chords in charge. The chord on I, the tonic, is rest. The chord on V, the dominant, is tension that wants to go back to I. The chord on IV, the subdominant, moves away from the tonic and usually prepares the dominant.
The examples are in four parts: the bass in the bass clef and the other three voices in the treble clef.
Cadences that close
The authentic cadence goes from V to I. It is the firmest ending: the leading tone (B, in C major) rises to the tonic and the bass leaps from G to C.
The plagal cadence goes from IV to I. It also lands on the tonic, but more gently, with no leading tone. It is the “amen” at the end of many hymns.
Cadences that leave the phrase open
The half cadence ends on V. The phrase stops, but with tension: it waits for another one to follow.
The deceptive cadence starts like the authentic one, on V, but instead of going to I it goes to VI. Your ear expects the tonic and gets something else.
To tell them apart by ear, listen to the ending first: does it settle or hang in the air? If it settles, authentic or plagal; if not, half or deceptive. Then look at the bass.