you need to use the command /pet.
There are other commands but I cant remember them.
Also not all pets will lie down on the first /pet and also some dont lay down at all. All the spider type pets dont lay for example.
When you /pet your pet it has, I believe 2 different responses, and if its the right type of pet one of them will make it sit or lay down.
Hope this helps