You can connect any output pins to an LCD (you don't need input ones, unless you're reading the busy signal, but it's simpler to use delays instead, and saves an I/O pin).
However, I'm not really very clear what you're doing, or how you have everything connected - but the most common problem is not disabling unused hardware (such as the comparators or analogue inputs).
Incidentally, I tend now to connect the LCD to PortA as most of the hardware I'm using uses PortB.