If you do not allow Windows to access your iPhone photos, then you cannot transfer them to your PC. So connect your phone and give all the permissions that pop up on your screen. Also, ensure that the photos are stored locally on your phone to transfer them.