1993 ford escort lx sw check engine light and brake light won't go off

My niece gave me this car!! The check engine light and the brake light stay on constantly. She said her dad put another enogine in it and the check engine light has been on ever since. Also, when the car is first started
up it is reving very fast. Any ideas?
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

take it to autozone or another store that will read the codes and report back
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Motorsforum.com is a website by car enthusiasts for car enthusiasts. It is not affiliated with any of the car or spare part manufacturers or car dealers discussed here. All logos and trade names are the property of their respective owners.