What would cause my 94 Mustang GT 5.0 to not have the power it should and now my check engine light comes on and off There sometimes is a noise when you step on the gas too?

my husband is a mechanic and says your motor is gone