Pentaquarks and resonances in the $pJ/\psi$ spectrum