how to take complete backup of my android device using adb
For photos you can either copy them to the pc or use a third party app that will backup them,  like Google photos. 

For contacts and sms there are plenty of third party apps.  You can alao backup the contacts to google server using the contacts app itself