you could still work there as long as your employer does not deny you.
if you do not have any other work aurhtorized visa in the US. You have to rely on an EAD (I-765).
If your EAD expires, literally, you can't work until it is renewed.
however, USCIS does not always process EAD application timely. therefore, if your EAD application is pending for over 90 days, you can get an interim EAD card from the local USCIS.
bring the I-140, pending I-485 receipt and your I-765 receipt. no photos needed. You may need
in your case, if your EAD has expired, wait for another month to get an interim EAD. you need to book your appointment online before you can get in USICS.