One LED works as expected. The sensor and PIC work together. The code looks OK.

Are you by chance missing an IR LED? Maybe that is the one not lighting, or on the wrong pin?