That is quite a bit of bouncing around the Scripture, and not in context to this particular passage.
You have to remember Paul is speaking to the Jews of turning back from Christ to the Law.
"Not laying again the foundation of repentance from dead works, and of faith in God."
He is telling them to let go of the works of the Law, and the faith in that system now that Christ has fulfilled the Law in it's entirety.
"Of the doctrines of baptisms," is referring to the many "washings" of purifications in the Law of Moses. This is where baptism originated, from the washings that no longer are to be observed with John the Baptist coming to show the purpose of the washings in the OT Scripture.
"And the laying on of hands," this is referring again to the Law of Moses, the laying on of hands in the sacrificial system. When an animal was sacrificed for sin, the person who brought the animal was to lay his hands on the head of the animal to be slain as the sign of the persons sin being transferred to the animal. This represents Christ dying on the Cross for our sins.
"The resurrection of the dead," is once again referring the prophets of the OT speaking on the resurrection of the dead but totally incomplete, Isaiah, Hosea, Daniel, all spoke of the future resurrection that represented Christ.
"And of eternal judgment," again referring the OT view of the judgement of God. But is explained in the NT, if you move on to it.
Vs 3, "And this we will do if God permit," refers to moving on to the NT where all of the Law is explained in Christ.
Then in vs 5, Paul begins to explain what will happen if they don't keep moving forward to the NT, they will begin to fall away, stuck in the first principles of the OT and not understanding.