The subject of a passive sentence generally cannnot show the ability to have something done to them. Neither affirmative nor negative constuctions with 'be able to' followed by a passive infinitive are natural.
Incidentally, "The fire spread through the building quickly and everybody could not escape" is not natural. We would say either "... not everybody could/was able to escape" or "... nobody could/was able to escape", depending on the situation.
Interested in Language