Talk about possession and family relationships. Keep the person who has something separate from what they have; relatives are relationships, not property.
With informal jij or je before the verb, use hebt: Jij hebt een broer. This states a family relationship. Je hebt een euro uses the same person form for possession. In the earlier question heb je, je followed the verb; that form had no added t.
For polite address, both u hebt and u heeft are correct. U hebt een zoon means “You have a son”; U heeft een dochter means “You have a daughter”. These are alternatives for the same polite person, not a change to third-person reference.
Thomas has a sister: refer to him with hij and choose heeft. Anna has a brother: singular zij also selects heeft. The neuter reference het uses heeft too when it refers to a stated neuter noun such as het kind. Keep the actual pronoun separate from the family noun phrase.
The child has a brother. After naming het kind, use the neutral neuter reference het: Het heeft een broer. Here het is a spoken personal pronoun referring back to the child, not the article in het kind. When a person's identity or gender is known, hij or zij can also be natural; this example prepares neutral reference.
You and your brother share a sister: Wij hebben een zus. Wij includes the speaker; we is its unstressed alternative. Use hebben for this plural person. We hebben een euro can mean that your group has one euro together; it does not say that each person has a euro.
Speak to two sisters together: Jullie hebben een broer means “You have a brother”. Jullie addresses the listeners' group. Use hebben. The same form works when their group has a euro together: Jullie hebben een euro.
Anna and Thomas are siblings with another sister. Refer to that other pair with zij or unstressed ze and use hebben: Zij hebben een zus. This differs from singular zij heeft. Ze hebben een euro can report what that other group has together.
To ask politely, both hebt u and heeft u are correct. Choose one, then use the prepared verb-before-subject question order. Hebt u een zoon asks whether the listener has a son. Keep the t with polite u; informal heb je is a different prepared choice.