Generally, if your last residence permit granted you the right to work in Germany then you can keep working until your permit is renewed or a new one is issued. But if your last residence permit did not allow you to work in Germany, then you'll need to receive a new one that permits employment before you can legally begin work.