Can't charge my iphone with my macbook
I have the iPhone 6S and the macbook Retina Pro. Whenever I try to connect my iPhone to my mac via a usb cable my phone keeps on connecting and disconnecting constantly and barely charges. I have tried different cables and both usb ports. Sometimes my mac tells me that I need to install an application but when I click on install it tells me that the software is not available. I also log in to my iTunes account but it doesn't sync with my phone. Sometimes it tells me to open my phone but when I do so nothing comes up on the screen. Any suggestions on how to fix this please?
Thank you
MacBook Pro 15", macOS 10.14