If your I140 is denied,your485
plus EAD plus AP will all be invalid at the same time. But you surely can reapply again, and once you are allowed to submit I485, you can do the EAD and AP at the same time, or anytime after you filed your I485.
In one word, EAD and AP are based on I485.