Being on top

I’ve only ever been with one person and on top didn’t go well so any tips on how to be on top? How to be on top and be good ?