1992 dodge shadow sat for 6 years just replaced fule pump and car starts right up but for some reason wont shift past first gear also when i jut it in drive or reverse i hear a clunk any ideas on how to fix this problem?

I'll start the car and after 10 minutes it'll shut off and when I go to restart it it won't turn over. I've replaced the fuel pump and filter before brand new. Now the car won't start doesn't turn over. I'm thinking it could be the cat because I have a exhaust leak but not sure. Maybe the distributor any suggestions

Sometimes when I start it the gas gauge don't go up and it has a mess to it and sometimes when I start it it don't do that . Someone said it might b a ground wire