Pain in upper hamstring

Today I whent to run on the track, and I could barley get my right leg up, because of the tremendous pain in my upper thigh, next to my glute. I don’t know what I did, but maybe I need a massage or something lol