Birmingham is located with Warwickshire but , before the 19th and 20th centuries , some parts of it used to belong to Worcestershire .
Birmingham ( , locally also ) is a major city and metropolitan borough in the West Midlands , England .