All you ever need to know about PIC clock oscillators and resonators/crystals here:
http://ww1.microchip.com/downloads/en/AppNotes/00588b.pdf
Two pin devices need 'load' capacitors of the correct value
Three pin devices have built in capacitors and the centre pin should be connected to 0V...