For contacts, you can back them up to your SIM card
For pictures, you can just copy them to your PC first then transfer to PC.
Note: Don't forget to disconnect the USB cable safely
As for messages, I'm not sure if there's an option.
Open Menu -> Settings -> Messages -> please check if there's an option to move text messages to SIM.