Your ANSELA setting is wrong
use LATA instead of PORTA for your output (refer to section 11 for more details)
double check the POR register default