I used a custom field for header image and can’t get it to show up on posts

This is pretty wonky (I would never do it), but it should work if you access the global.

    global $post;
    $image = get_post_meta( $wp_query->post->ID, 'img', true);

    <img src="https://wordpress.stackexchange.com/questions/105398/<?php echo $image; ?>" class="img"/>