Each person who flies has to have his / her own SkyMiles account. You can't credit someone else's miles to your account, and vice versa. The Delta system does a name match, which is why you're not getting miles for both trips.
Supposedly, even if you buy 2 seats for yourself, you'll only get credit for 1.