Because you removed the fob battery and further compounded by the fact you disconnected the vehicle battery, the complete lock system and the anti-theft immobilizer system needs reprogramming. I am undecided whether a locksmith or an electrician is better, but would suspect the auto locksmith.
https://www.google.com/search?q=mobile+auto+locksmith+near+mehttps://www.google.com/search?q=mobile+auto+electrician+near+me
The car should always be started with a proper chipped key. The valet key on my car has a chip in its credit card style case. It will start the car if the case is close, or you can give the key to someone just to gain entry to the car and not start it.
Question edited for clarity.
Question moved to model category.
The 2007 Nissan Maxima Camshaft Position Sensor Bank 1 Location is located on the top right side of the engine, near the firewall. It is in line with cylinder number 1, and it will be found between two spark plugs.
In the 1995 Nissan X-Trail with a 3.0-liter engine, the crankshaft position sensor is typically located on the engine block. However, it's important to note that the 1995 X-Trail model was not available with a 3.0-liter engine. It's possible that you may be referring to a different Nissan model or engine.
To provide you with accurate information, please specify the correct Nissan model and engine.
Question edited for clarity.
Question moved to model category.
There could be dozens of things wrong with it, but you don't guess, you diagnose.
Call up an auto electrician, he will come to you and connect his pro grade scan tool computer to the diagnostic port. That tells you the problem and from that you do the fix. It is probably a sensor.
https://www.google.com/search?q=auto+electrician+near+me
..
Remove door panel by prying out at the bottom. Follow around door and remove the panel retainering tabs. Push up on panel to remove from top of door. Now snap the window lock button assembly back in place.
00 maximas don't have swirl control valves that feature wasn't added until 01 unless by some wierd chance your max was made after July in 00 and is cal spec