Because you’re outside the loop, you’ll need to either know the post id of the title you want and specify it in the function parameter, or call the global $post variable if you’re on the page (just not in the loop yet).
global $post
echo get_the_title($post->ID);
or
echo get_the_title(2);