Knocking and no where to go!

I have an 98 Jeep. When I give it gas it stalls and there is a knocking sound that happens only when the gas is given. This does not happen all the time. Someone said it might be the fuel injection? Can anyone help?

Are you using regular gas in an engine that calls for premium?