Sirius Black can turn into a Dog because he was an "Animagus". An Animagus is a witch or wizard who could transform themselves into an animal and back again as per their choice.