2003 ford escape 6 cylinders

Flashing latterly light came on dash. Eventually the veh died so I replaced the alternator with a rebuilt one. Battery light and the emergency light would flash on dash. Changed the battery and now only a solid battery light is illuminated on the dash. Any idea. Could the rebuilt alternator be not functional?.