There should have been some instruction in the box.
Does your new valve have fittings like the one in this video?
Video: Connect and disconnect a push-in ice maker water fill valve plastic line
If so then you cut your old plastic nut ends off and slip the line into the new valve.
Hope that helps,