LEND — you give to someone (lend TO). BORROW — you take from someone (borrow FROM).
Can I borrow your pen for a moment?
Use BORROW when you are the person receiving something temporarily; you take it FROM someone.
Could you lend me some money?
Use LEND when you are the person giving something temporarily; you give it TO someone.
She borrowed her notes from a classmate.
Use BORROWED because the subject (she) is receiving the notes from a classmate; BORROW means to take FROM someone.
He lent his car to his brother.
Use LENT because the subject (he) is giving his car to his brother; LEND means to give TO someone.
I'd like to borrow a book from the library.
Use BORROW because you are taking a book FROM the library; the person borrowing receives the item temporarily.
The bank refused to lend her any money.
Use LEND because the bank is the giver; banks provide money TO people who need it; LEND means to give TO someone.
Can you lend me your umbrella?
Use LEND because you are asking someone to give you their umbrella; when someone does something FOR you ('lend me'), they are the giver.
I borrowed this dress from my sister.
Use BORROWED because the subject (I) received the dress from the sister; BORROW means you take FROM someone and must return it.
He never returns what he borrows.
Use BORROWS because the subject borrows things (receives them), and the sentence refers to items that should be returned; BORROW is about taking FROM someone.
Would you mind lending me your laptop?
Use LENDING because the subject (you) would be giving the laptop TO the speaker; LEND means to give TO someone temporarily.