State tax filing

I also live in MA and work in NH but I pay MA income taxes from my check. NH told me to file unemployment in MA and MA says to file in NH. Does anyone know who is right. If I'm paying MA taxes shouldn't I file in MA? Please Help