Question: how to transfer data from iphone to iphone via cable?
Answer: Connect the Lightning to USB 3 Camera Adapter to power through its Lightning port. ... 
Connect the Lightning to USB 3 Camera Adapter to your current iPhone.
Plug the Lightning to USB Cable into your new iPhone, then connect the other end to the adapter.