I have a new

I have a new website but think Im made a mistake changing the URL part somewhere on the old site, how do I change this back as I now can't get into my wordpress to do anything and it is just pointing at my old account.