You should place this code into the file which is responsible for showing page (or kind of pages). Bracket with ‘ ‘ consist name of widget you have registered. It will call function from functions.php
<?php if ( is_active_sidebar( 'widget' ) ) : ?>
<?php dynamic_sidebar( 'widget' ); ?>
<?php endif; ?>
Best Regards