جَاءَ زَيْدٌ: jāʾa is past tense; Zayd is fāʿil, nominative by ḍamma.
رَأَيْتُ زَيْدًا: raʾaytu is past tense with -tu as its subject; Zayd is a direct object, accusative by fatḥa.
مَرَرْتُ بِزَيْدٍ: marartu is verb and subject; bi- is a preposition; Zayd is genitive by kasra.
A pause-ending does not remove a noun’s capacity for iʿrāb.