what did it fail? any codes? what year is it?

there are plenty of miata/mazda guys to help u out..