It depends on which attack kills and the HD of the victim
Highlighting the key points here.
Create Spawn (Su)
A humanoid or monstrous humanoid slain by a
vampire’s energy drain rises as a vampire spawn 1d4 days after burial.
If the vampire instead drains the victim’s Constitution to 0 or lower,
the victim returns as a spawn if it had 4 or less HD and as a vampire
if it had 5 or more HD. In either case, the new vampire or spawn is
under the command of the vampire that created it and remains enslaved
until its master’s destruction. At any given time a vampire may have
enslaved spawn totaling no more than twice its own Hit Dice; any spawn
it creates that would exceed this limit are created as free-willed
vampires or vampire spawn. A vampire that is enslaved may create and
enslave spawn of its own, so a master vampire can control a number of
lesser vampires in this fashion. A vampire may voluntarily free an
enslaved spawn in order to enslave a new spawn, but once freed, a
vampire or vampire spawn cannot be enslaved again.
The attacks in question are the Blood Drain
Blood Drain (Ex)
A vampire can suck blood from a living victim with
its fangs by making a successful grapple check. If it pins the foe, it
drains blood, dealing 1d4 points of Constitution drain each round the
pin is maintained. On each such successful attack, the vampire gains 5
temporary hit points.
And Energy Drain
Energy Drain (Su)
Living creatures hit by a vampire’s slam attack (or any other natural
weapon the vampire might possess) gain two negative levels. For each
negative level bestowed, the vampire gains 5 temporary hit points. A
vampire can use its energy drain ability once per round.
So in short, if you kill by biting, (Blood Drain) and the PC is level 5 or higher, then you get a vampire in 1d4 days in the ground. Otherwise you get a vampire spawn. But the key here is that the victim must DIE from the vampire's attacks AND be buried. Just being smacked around does not make you a vampire. If a PC dies the party can keep him from turning just by not putting him in the ground.
All quotes taken from the Vampire entry on the SRD.