Riding

Whenever I've had sex and been in top I'm never quite sure how to "ride" his dick. 
Sometimes he moves my hips so I'm moving back and forth but other times  he makes me go up and down (I've seen this in porn) so I'm not really sure which ways better Or if I'm doing it right at all