A work permit grants you permission to work in Poland, while a residence permit allows you to legally reside in Poland for the duration of your work permit. In most cases, you'll need both to work and live in Poland.