my phone keeps switchnig off and not charging up despite a new battery etc.
It sounds like you have a hardware problem rather than software. I suggest you bring your phone to the place where you purchased it and have it checked to find out what the real problem is.