Create an if statement based on page_id

You don’t need if (is_home) – the homepage doesn’t use page.php as a template, and you’re checking for page ID anyway, which the homepage shouldn’t match. To check what page you’re on you can use is_page() with the page ID.

if(is_page(1111)) { display text 01; }
elseif(is_page(2222)) { display text 02; }