How did you start your 3 mongods?
You should add replsetname in the config file or mention the same if you started from command line
I am guessing you most likely connected to default mongod whic runs on port 27017 as service
This will not have any replset param set
Refer to mongodb documentation