Which system version is running on your Mac? If your iPhone is set to take photos in the new High Efficiency format, only a Mac with High Sierra can read and download the photos. You can change the settings on the iPhone to use a more compatible format, see:
Using HEIF or HEVC media on Apple devices - Apple Support
Another problem may be iCloud Photo Library.
When you use a USB connection, you can only transfer photos and videos, that are currently in the Camera Roll. This will exclude all photos, that have been synced to the iPhone with iTunes.
Also, you cannot download photos from iCloud Photo Library this way, only photos, that are saved locally on the iPhone. If iCloud Photos Library is enabled on your iPhone, and the "Optimize Storage" option is also enable, not all photos will be stored locally, only smaller, optimized thumbnails.To be able to download the currently optimized photos as well, tap them to view them enlarged.
You may be using iCloud Photo Library, without being aware of it. The upgrade to iOS 11 may have enabled it. Check the Settings > Your Name > iCloud > Photos. DIsable "Optimize Storage", if it is possible.