Sounds like you may have a PATS problem.

Is the red light next to your clock flashing irregularly when you try to start the car?

It should light up solid for a brief period when you try to start the car and then go off.

If it is flashing irregularly, you have a PATS problem. You'll need to take it to the dealer to get it fixed.