Luis thank you very much for your contribution, what I do not understand is because so far I get that problem since I bought the car I opened the key and the battery holder was loose to the welding points being so I imagine that I had never worked. An electric tells me that it can be the crankshaft position sensor I don't know what to believe, if it is scanning and it is the key that will come out in the codes I throw. Thanks for your answers.
If it were the crankshaft sensor, not even turned on the car, but scan it to see the Sacner marks you and send us the fault codes to analyze them and give you more options