I’m not a parent, but someone with ADHD and childhood struggles that sound very reminiscent of your daughter. Getting put into gifted classes, but lacking motivation and focus, or always getting in trouble for fidgeting instead of doing work. School was a nightmare with untreated ADHD, and I still have traumatic memories of being mistreated by the adults in my life who didn’t understand why I couldn’t just “try harder” and be like the other kids. Please consider getting your kids evaluated if you can; this is an easily treatable problem.