Make sure that the ground pin of pic is common with the servo's ground.

Or post the schematic.
---------------------