The second sentence is not correct because you cannot start your question with "How to...". It's not a question.
How can one / you ride a motorbike with a passenger on the back seat?
I've never ridden a motorbike in my life, though.
Student or Learner