To create a partition /dev/sda3 the correct command is
It is not
If you run the second command instead you try to create a partition inside the already existing partition /dev/sda2, which, depending on the filesystem in use, will screw up that partition.