What could be wrong engine knocking then stopped running on an 89 ford ranger?

It may have lost oil pressure. Is the oil full? Insufficient oil is the most common but not the only cause of low oil pressure.