I have a 3 yo Amazon DYH how is regaining flight (her first 2.5 years were in a pet store clipped, so not only not able to fly, but not in an encouraging environment).
You didn't mention whether yours was clipped or just has no experience in flight, it may make a difference how you approach it, as you need a decent amount (but not nearly all) flight feathers grown in before it will be really able to fly.
Now, on the other hand, if it's not feathers....
I THOUGHT mine could only fly down as every flight, whether spooked off a perch, or very rarely spontaneously when she just really wanted to be elsewhere, were down. I was fairly regularly trying to get her to build up strength by encouraging her to fly down a long hall (so no obstacles) where she would skid to a stop half way. Then one day it was like she had an idea -- "hey, I bet I can fly up" and all of a sudden she could skim the ceiling all the way down, ducked under a door frame, and ended up in a mess in the bottom of her play area. Just like that -- from "always down and short" to "whever i want to go". Well, except for the aiming part, and especially the landing part.
So ... be prepared.
Since then we've been working mostly on landings. That took a while but was fairly easy -- I would bring her toward a favorite perch and launch her. First few she just flew over, but after not too long she was landing on them. I used a small play stand I could put on the floor or a big table first so a miss didn't fall far. She's now really good at most landings unless she approaches a perch from the end -- she hasn't figure that out quite yet. A few have been beak landings (i.e. grab on in passing with the beak and hang until she can get feet on something).
What I have zero luck with is getting her to fly to me. Zero. Favorite foods get her dancing like a toddler who needs the bathroom, but no launch. She will willing take a LONG step to my arm, but one inch further than she can reach and nothing.
I'm trying a hybrid -- one playstand is about 10' from her cage. I'll get her on the stand, then open a favorite container of food (plastic lid opening is like a dinner bell) and put it on top of the cage. She launches to the cage, and my arm goes up and in the way, and she lands on it, then gets a treat. She's done that a dozen or more times in the last few days, gets a treat but still won't aim for it herself. But we are working on it.
One thing I've learned -- not exactly on purpose -- birds are tougher than you think. She's launched herself quite a few times when I did not want her to, or gone the wrong way and run into a dead end. Collisions are not infrequent, often far up on a wall (trying to land on some edge, like top of a tile band, that can't be landed on). Ugly flutter (more of a collapse) to the floor. A few collisions with door frames. So far no harm. I worry but... short of keeping her locked in the cage it's impossible to prevent these. I do keep the doors closed to some rooms, but the house is mostly an open floor plan. People here will talk about padding the floors and protecting them on landing, but there's a point really quickly you get to where they just go anywhere in the house they want -- you can't pad it all.
I do suggest you not encourage landing anywhere but designated perches or cages, not because they can't, but because it's a lot less trouble for you. Don't reward them for landing on a window sill (unless you really want them there), or kitchen cabinets. Reward them only for landing on approved airports! Maybe even put them away if they spontaneously launch to somewhere unapproved. You'll be happier about this when they don't decide to land in a plate of pasta on your dining room table.