You sure it only happens when you have a 1/4 tank left or it just seems like it? When was your last tune up done? ie plugs,wires,distibutor cap/rotor, filters?
Also check your alternator, it might be failing and able to work a lil while your driving but when you're at a complete stop it's not charging the battery. Are you able to start it right away when it cuts off?
It could be alot of things, maybe you should describe in detail as to what happens instead of saying it just stalls on a 1/4 tank.