How do I print the {{messages}} variable?
By default the messages are in the highlighted region, put this in your page twig:

{{ page.highlighted }}


If you changed the block layout, go to

admin/structure/block


and check in which region you placed the status message block. When it is disabled, move it back into a region.