In poetry, a repeated word, phrase, line, or group of lines is called…

a refrain.

a soliloquy.

simile.

metaphor.