What is the rule when you tie on a pair or two pair?It seems like I always lose or tie when I have a better card

What is the rule when you tie on a pair or two pair?It seems like I always lose or tie when I have a better card.

The best 5 card count

say two pair tie

AA44

J

AA44

K

Who got the K , the winner. ( call “kicker” , “higher kicker”)

And in this case you share the pot… When player A has AA44 J and player B has AA44 Q and the K is on table (community card) and the best hand is AA44K (both players have the same hand, best 5 cards), than you share the pot.