Two things to check. First, look at your options — is the pet command set to "don't attack"? That single setting will keep a pet passive no matter what you do.
If that is not it, the likelier cause is your Charisma stat. Too low and the pet simply will not engage, so that is where to invest your next points.