Bought a new car battery for my 2000 Honda Civic?

Problem is when I cut the car on it automatically accelerates. I have a bad O2 sensor and a bad transmission sensor could that be the cause?

Cut on? What are you cutting?

A lot depends on why you thought you needed a battery in the first place.

Why not buy a new O2 sensor and transmission sensor? See that's what happens when you have no clue.
Do you have error codes? CEL on? Can't even talk the talk, so how do you expect to get some serious help.
Its time to seek professional help from real mechanics.