Nun,
Your question is not clear.
If you are UK domiciled, and US resident, then you pay Fed and MA tax on your wages and do not pay any tax in the UK on the wages.
If you are UK domiciled, and UK resident, and either 100% of your workdays were performed in the UK or you meet the treaty test to count US workdays as UK workdays, then you pay UK tax on your wages, pay MA tax on MA workdays only (usually only bothered with if two or more weeks in MA), and pay Fed tax on the whole lot less any UK tax paid - for a net tax of usually just the UK tax. Many people would not compute or pay the MA tax in this situation, under the assumption that the Fed treaty resourcing of US workdays as UK workdays will also resource their MA nature. Tax is grey in some areas, this is one of them. The conservative position is to tax the MA workdays in MA, the aggressive position is to not tax the MA workdays based on the treaty.
Then there's the messy position of not being able to resource the US days as UK days under the treaty, where there is an even greater divergence in the amount of taxes paid (the total of UK, MA, and US taxes) between the conservative position and the aggressive position.
Once you get into anything more complicated than just getting a W2 and living, working, and being a citizen of the same state and country, tax stops being black and white. Seeking B&W answers on a forum is never going to provide you with a satisfactory answer, especially as the answer is long, complicated, and covers loads of factors you haven't posted. It would take me, Guya, or any of the other accountants who post here hours to answer comprehensively. Invariably, at least one other person on this forum will disagree; post an equally lengthy and erudite reply, leaving you more confused than ever.
Any answer posted here must be applicable to anyone in remotely similar situations, and thus answers posted here must be extremely conservative and can not take into account shades of grey or any bits of your personal info you might have unwittingly not mentioned.
If you ask it here, you will not necessarily get the answer you are looking for, and you may unwittingly back yourself into a legal corner where you are stuck with a less-than-desirable result simply because you've laid it all out in black and white on the internet for everyone (the government) to see. Alternatively, if you ask it of a tax accountant or a lawyer in a private one-on-one in-person or telephone session, you will get the right answer, specific to you and only to you.