The necessary information is usually found in the car’s handbook ... was the problem and not the fob itself, it’s usually not ...
Be sure to check your owner's manual or look up the procedure for starting your specific vehicle if the fob battery is dead.