Loading WP core Thickbox through frontend

You need to add a call of wp_footer(); function. Do it before closing body tag in your footer.php file. It should look like this:

        <?php wp_footer(); ?>
    </body>
</html>