Given the details provided, it's probably safe to say that the problem is with the phone and not the battery. Without knowing more though, it's difficult to tell you exactly what's wrong. I'd recommend bringing it to a repair shop to have it properly inspected.