It depends on what you want to see and do, but 6 hours is enough time to get the Heathrow Express to Paddington and back.
If you are connecting to another BA flight, you would go though flight connections and use the departure lounges. If you are connecting to another airline, you would need to clear immigration and use the arrivals lounge.
Which terminal are you arriving into, and what airline are you connecting with?