New master cylinder wont work??

I had ordered a new cylinder and took the old one in as a core. The cylinder they had was wrong. As I was standing there I forced the plunger down and it spit out everything gumming it up. Made quite a mess, also.
So I took it home and cleaned it as I stated above.
I think my problem was severely corroded lines inside and out. So I R/R'ed them