Itermittent car wont run

My 3.1 1996 Olds Ciera ran out of gas. It was getting bad gas mileage before that and the gauge wasn’t working correctly. I put a new sock, sending unit, gas pump and gas filter on it and cleaned the fuel injectors. The car ran good for about a month, then after a 100 mile run, it would start, run with a clattering noise and shut down after a few 100 yards. This was an intermittent problem, but now the car starts, makes the noise and stops when you put it in drive if you give it gas. If you don’t give it gas, it idles okay. My mechanic said it sounds like the fuel injectors are making the noise. Has anyone had this type of issue with a 3.1?