make a cable join between the 2 elements linked to the cable and if you need to make the pulley turn make a CRANK join between one of the the element listed before and the pulley.
This should work, but are you sur you need the pulley to turn ?
Have fun,