Idles fine then wants to die driving

Check the fuel line coming off the fuel sending unit at the tank to make sure that the line is not bent/closed down. I've seen the hose kink and restrict flow, make sure it's straight and no kinks or sharp bends to collapse the ID of the hose...