To maintain long hair you need to take care of them properly. Just washing and shampooing your hair is not enough to keep them healthy. You need to schedule regular trims to keep them in healthy state, also shampoo and condition them as per your hair type and dry them with care. Avoid tight hairstyles that might pull and damage the hair shaft. What you eat also matters, so have a balanced diet to keep your hair long and strong.