i think when it comes to endgames and being in those positions i think its best to go for a draw or trying to capture the other pieces besides the pawns
I need some help with my endgames
Rook endgames can be extremely tricky and counterintuitive. It often just comes down to knowing theory, because just blindly applying general principles can blow up in your face.
Study rook endgames played by grandmasters. Example:
https://www.chessgames.com/perl/chessgame?gid=1042832

Show us what you did, though. Post the whole games, perhaps? In positions like this, a single move may not really determine anything (unless it's a bluinder) -- what matters is the general plan.
The first step in figuring out how to play an endgame is to decide, as objectively as you can, how you'd evaluate the position.
Are you better and playing for a win? If so, set to work determining the clearest route and shutting down any chances for counterplay.
Are you slightly better and trying to find a way to play for a win, but aware that, if your opponent defends well, you may have to settle for a draw? If so, keep your pieces active and look for threats you can make but be realistic too and be careful not to do anything that would give strong chances for counterplay.
Are you slightly worse but optimistic that you can hold a draw? If so, decide whether you can settle on a sound defensive setup that can't be penetrated, or whether you have to rely on counterplay (say, getting a passed pawn on the other side of the board) in order to hold the draw? Keep an eye out for when you need to shift gears between these two strategies. And watch for any time your opponent may overreach and give you winning chances.
Are you definitely worse and on what looks to be the clear path to a loss? If so, play carefully and keep things hard for them, but watch for any chance where you can disrupt the current state of affairs and complicate things to the point of swindling a draw.
On a quick glance, I'd say that the first two look pretty balanced. White might be a little better in the first because the e6 pawn is weak, but I would bet black can hold with accurate play. In endgames like these, you want to get your pieces (including your king!) active, but you may not be able to force anything unless your opponent makes a mistake. Often in these sorts of endgames, someone tries to play for a win when it's not there, and, as a consequence, loses.
If I were playing white in the first, I'd like to be able to play Rd7 and go after the pawns from behind, but I can't because of Rc3+ followed by Rc2+ and Rxa2, which also protects their a7 pawn. So that leaves Re3, where you can try to tie them down but probably don't have anything.
The second, with symmetrical pawns and opposite colored bishops, looks pretty drawish. Both sides want to get their kings active and then manouver their knights to better squares (for the white knight, b4 and e5 look good, though neither is easy to get to; the black knight may have to settle for something less active but can watch how the white pawn structure develops to find a good place to sit.).
In the third, white does seem to have an advantage on account of the much more mobile bishop. Both sides want to centralize their kings. White may want to consider c5 in order to fix the d7 pawn where it is, leaving black's bishop cramped and leaving black's pawns on white squares where the bishop can attack them. Black may want to consider a5 to slow down the b-pawn's ability to coordinate with the c-pawn. Both sides want their pawns to move onto dark squares so that they can't be attacked and so that their bishop has more space to manouver.

Had a look at the first two positions. The analysis see both as draws. So, with fine play, you should draw the games. but that is not easy when your opponent is eager to try everything to win. there are lots of material here in chess.com to learn more about andgames. In the lectures, even in the tactics you can choos only to get endgame tactics. I very apreciate the videos of anna rudolf about this topic. I like her style and she is (like me) very fond of endgames. Or read capablancas books, he was one of the best endgame players who ever lived.
When i get to endgames it is often 1 rook and pawns vs 1 rook and pawn or 1 bishop with pawns vs 1 bishop with pawns. But I mostly lose in these positions, I was wondering if anyone had any tips. Any advise is appreciated!