Sharp Upper Back Pain

I was doing chins at the gym, I jumped up to the bar to do a negative gripped the bar at the top and felt a sharp pain just right of my spine. It now hurts to look up or down or to far over left or right! Does anyone know what this could be? Or how to treat it? Any advice is welcome.