Some of the codes run repeatedly, the rest don't run at all

The code in loop() runs repeatedly. When you display the text, your code reaches the end of loop, then continues at the beginning of loop, clearing the text and re-displaying the image. Put another delay() after displaying the text so you have time to see it.