1998 Nissan Sentra no start and stalls

Nissan Sentra

My car starting acting up last night. It will turn but not start and when it starts it immediately stalls right after.

the next time the engine will not start you may want to see what it is not getting. Either loss of spark or fuel or both. A quick test would be a shot of starting fluid.

Is the check engine light on? Post the codes they might give us a clue.

If I had to guess, it would be a vacuum leak. Try giving it a little gas pedal the next time you try to start it and see if it starts easier.