If you want to show the gallery the same way that wp does then
$gallery_images = get_field('gallery', false, false);
echo do_shortcode('[gallery ids="'.implode(',',$gallery_images).'"]');
this is one of the examples given in the gallery field documentation https://www.advancedcustomfields.com/resources/gallery/