Why is ford focus losing power and engine light flashing?

The two are probably related. Take the vehicle to someone who can read the error code and give you a diagnosis.