Ok I was coming home from town and I look down and I see my battery and break light was on. so I drove a little more down the road, pull over and turn off the car and turn it back on to see if maybe my battery is dead. It's starts up fine with no problem so I figure maybe it's just some bad sensors. So as I was kinda in a hurry to get home I gun it to get up to speed so I wouldn't hold uip traffic or snything like that. And as I floor it and go into passing gear I see the lights go off. So I kinda started wondering about it but just figured bad sensors nothing to worry about. So I'm about 5 miles from my house and I turn onto my road and floor it like I always do. But instead of going into passing gear it hesitates and doesn't go. I try it about four times and still wouldn't go. So I just decided not to worry abut it, and I press on the breaks to slow down since there was a car ahead of my stopped and as I do my RPMS, and speedo dropped to 0. and my airbag light turns on. So I think my car is dead. (it isn't yet) but I pull off the and than my car dies. So I get my dad up to where I am and have him jump my car and everything seems fine. As soon as he took the cables off it'd die. So eventually I go home and get a new battery and put it in and it turns over fine. But my battery and break light is still on. What could cause that? I know bad sensors but what else? Also could a dieing battery keep the car from going into passing gear?