Normally the command is /msg nickserv register, but it varies from network to network. Try /msg nickserv help register and see if it works.