The VREF pins are multiplexed with the comparators.
You have to turn them off.

CMCON0 = 7

Also, you are setting both the VREF+ and VREF- to external pins.
What voltage do you have on VREF-
<br>