I do not see anything wrong with the hardware, but your code just runs to END and ends.

But, if all works well when connected to the PICKIT2 and I will assume using the PICKIT2 to power the circuit... What are you using for a power supply?