When the PIC starts up port A is analogue. To change this to digital you have to set the ADCON1 register.
To make all port A digital you would include the line

ADCON1 = %00000110

Section 10 of the datasheet 'Analog-to-digital converter' explains this.
Phil