What have you tried?
With linked lists, it's best to study it, and have a good sample program that you know works, to refer to while you are troubleshooting your own program.
I would either refer to your class/book notes on it for this, or grab a none good program from the net, and have it close at hand. Study it, to confirm that your idea of how it should work, corresponds correctly with the known good program.
Linked lists are a bit of a pain to just create out of thin air, if you're new to them, and have nothing to study in the way of good working code, first.