In your configuration bits, the USB voltage regulator needs to be enabled.