That's what happens when you use a phone from the future...
Have you tried a different cable? That should be the first thing you try, assuming you've allowed the connection correctly from the notification on the phone.
Also make sure the USB ports on both the phone and the computer are clear of debris -- use a can of compressed air to blow them out, and a dry toothbrush to scrub them.