Post your code, PIC number. Do you have a regulator in your power supply? Capacitors ? Have you set the TRIS and PORT registers? Have you set the config fuses? Are you using Resistors to tie the unused ports to either ground or VCC ?