Pagination is not working on custom query inside a custom home page template

Use this for pagination

<?php
    $paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1;

    $mostpopular_args=array(
             'post_type' => 'post',
             'orderby' => 'meta_value_num',
             'meta_key' => 'view_count',
             'paged' => $paged,
             'posts_per_page' => '10',
         );
    $wp_query = new WP_Query($mostpopular_args);

    while ($wp_query->have_posts()): $wp_query->the_post();
    get_the_title();
    endwhile;

    global $wp_query;

    $big = 999999999; // need an unlikely integer

    echo paginate_links( array(
        'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
        'format' => '?paged=%#%',
        'current' => max( 1, get_query_var('paged') ),
        'total' => $wp_query->max_num_pages
    ) );
?>

tech