So recently i've noticed the car is stalling a lot lately. usually at slow speeds. Power stays on (radio keeps playing and ect). If i turn key into off position and put it into park it'll usually start back up pretty quickly. I'm not getting any engine codes. I've read and found this might be the crank position sensor and if that's the case how long can it be driven this way? I won't have money to fix it too soon ;s

Another thing i noticed is there is a wire hanging from behind the oil pan area, looks like its plugged into a sensor of some kind, black in color with a long blue platic tab sort of thing coming out the backside, maybe about 2 or 3 inches long. haven't been able to find out what that is. i didn't see that there before when i did an oil change a few months ago

this is all on a 98 grand prix gtp