You are needlessly confusing yourself by comparing the general resurrection of all the dead in Verses 28, 28 with Verse 25. Note what verse 25 says:
John 5:25, KJV Verily, verily, I say unto you, The hour is coming, and now is, when the dead shall hear the voice of the Son of God: and they that hear shall live.
Jesus Christ states first: the dead shall hear the voice of the Son of God
He states next: and they that hear shall live.
Ask yourself: "convicted1, am I confused or is Jesus Christ ? If Jesus Christ states the dead, apparently inclusive, hear the voice of the Son of God how can He then say and they that hear shall live. Does that mean some do not listen?"
In verse 25 it indeed means some will not listen. This is not speaking of persons in the grave, but living people who are spiritually dead.
Verse 28 is very different, it is speaking of persons who are physically dead in the grave. In this verse it says ALL that are in the graves shall hear.
Jhn 5:28 Marvel not at this: for the hour is coming, in the which all that are in the graves shall hear his voice,
So, verse 25 and verse 28 are very different. Verse 25 is speaking of living persons, though they are spiritually dead. They can hear the voice of the Son of God, and those that hear (believe) shall live. Those that refuse to hear shall not live.
Verse 28 is speaking of physically dead persons in the grave, both those who are spiritually alive when they died, and those that were spiritually dead when they died. This verse says ALL that are in the graves shall hear the voice of the Son of God.
Verse 25 is speaking of hearing to life, verse 28 is speaking of rising out of the grave. Verse 25 is being born again, verse 28 is the resurrection.
Fact is, in both verses 25 and 28 it is shown that THE DEAD (spiritually dead) can hear the voice of Jesus.