Long distance relationship

How do you maintain a long distance relationship. If you're in one or ever been in one can you give me some advice please