Hymn tune
A hymn tune is the melody of a musical composition to which a hymn text is sung. Musically speaking, a hymn is generally understood to have four-part (or more) harmony, a fast harmonic rhythm (chords change frequently), and no refrain or chorus.
From the late sixteenth century in England and Scotland, when most people were not musically literate and learned melodies by rote, it was a common practice to sing a new text to a hymn tune the singers already knew which had a suitable meter and character.