Could be a main engine relay problem.
The Subaru Impreza does not have a fuel pump inertia switch. If you are having fuel issues it could be the fuel pump relay or fuel pump.
A noisy fuel pump in a 1995 Subaru Impreza could be a sign of oncoming failure. Check the pump for the source of the noise, and it is probably a good idea to replace it.
typically $250 - $300. just paid $260 to do my '02 impreza RS.
it could be one of the sensors crank shaft or cam shaft
Generally speaking, a rebuilt transmission for a 1997 Subaru Impreza will cost between $2,000 and $5,000. It could be more or less, it depends on the parts put in and the worker labor charges.
It depends on what is wrong with it, a minor problem could run as little as 100 dollars while a transmission replacement will run a good 2500-3000 dollars.
I had the same problem in my 1995, i took it to the dealer and they fixed it. I think it was a very simple fix, but it was many years ago.
check your fuses The starter
A plugged transmission filter can cause your transmission to hesitate when you shift into drive. A collapsed vacuum hose can also cause the problem.
try changing the spark plugs you will get loads of highley technical answers on here but its normally the simple solution that works i had the very same problem on my impreza and all it needed was a new set of plugs..