Assuming the trim is Piper's and not an autopilot system, it should be repairable as long as the motor isn't shot. However, the cost could vary quite a bit based on the [correct] diagnosis. There are many ways in which the system could "not work," and I haven't found many mechanics who understand it well. In my case, the motor and switch were fine, but I had to clean up the clutch, the jackscrew (and apply the proper LubriPlate), and adjust the cable tension properly. Even if the clutch engages, it won't reliably move the system if the cable tension is off. Sometimes folks helpfully "lube" the clutch and cause it to slip. The clutch can typically be adjusted and rebuilt if necessary. I did have to buy the maintenance manual for the trim system to get it all right.
JKG