Why in this archive page that call query_posts() function show only the last 10 posts?

WordPress by default will only load 10 posts. That can be changed in the admin under Settings->Reading and then setting the amount beside “Blog pages show at most”.

You can override that number in your custom queries a couple of ways but I would first recommend against the use of query_posts() ( take a read at the link for the reasons why) in favour of get_posts() or even better WP_Query() and pass the appropriate arguments

//create a query with WP_Query
$posts = new WP_Query(array(
    'post-type' => 'post', //this can be post, page or a custom post type
    'posts_per_page' => -1, //this can be any number or settting to -1 will give you all the posts
    //add whatever other parameters you need
));

//modify the loop slightly
if ($posts->have_posts()) :
    echo '<ul>';
    // Start the Loop.
    while ($posts->have_posts()) : $posts->the_post();

        /*
         * Include the post format-specific template for the content. If you want to
         * use this in a child theme, then include a file called called content-___.php
         * (where ___ is the post format) and that will be used instead.
         */

        echo '<li>';
        get_template_part('contentArchive', get_post_format());
        echo '</li>';

    endwhile;
    echo '</ul>';

else :
    // If no content, include the "No posts found" template.
    get_template_part('content', 'none');

endif;
?>

Another way to do this would be to hook into the pre_get_posts action with allows you to hijack the loop and make changes to the query before the posts are pulled from the database.

You would need to check to be sure you are only affecting the main loop for that archive page by doing some checking using a function like is_main_query() and others mentioned at the bottom of that page.

Place this code in your functions.php file – you’ll need to do some testing to be sure it’s not affecting other pages/loops but that is the general idea.

function wst_157845( $query ) {
    if ( !is_admin() && $query->is_main_query() && is_archive() )
        $query->set( 'posts_per_page', -1 );
    }
}
add_action( 'pre_get_posts', 'wst_157845'); 

Hope this helps!