tracker dies just like it run out of gas , might take half hr. to restart on 1995 Geo Tracker

my 1995 tracker just started this a short time ago, when driving the,engine stopped , it took about 10 or 15 mins before it would start again.Some time it takes half hr,. or more.Then it might not do this for a couple of days.What could cause this and how to fix it.

1 answer
try to change your fuel filter its by your gas tank