Getting good at taking photos, or at least getting to the point where you're happy with (and maybe even surprised by) your own work, comes from a lot of different factors.
It comes from taking a lot of bad photos. Ones that you'll look back on eventually and hate yourself for not framing things a little differently or exposing the image a little less. Over time, you'll start to recognize what you do and don't like in your photos, until you start to lean into the things you do like more and more.
That also means that you need to recognize what you like. Consider what films you like the look of the most, and why. Look at all kinds of paintings. Edward Hopper is a favorite of mine. The way painters work with light is just as intentional as a photographer or DP. Start to assemble a collection of "looks" that you're really drawn towards. Immerse yourself in these influences and see what speaks to you, as well as what you feel you can respond to most. See what work you're good at imitating. It's not a good idea to try and make a whole career out of ripping off someone else's work, but that can be a good place to start branching out from and finding your own voice.
Taking good photos also requires some patience to learn the technical side of photography. Things like focal lengths, aperture, shutter speed, etc., are all to get you to the point of not having to think about them much. What's great about having lots of technical knowledge is that you can hopefully use the equipment so effectively and efficiently, you don't even have to think about it.
Now with your technical knowledge and your inspiration, this is where you keep on taking a lot of bad photos. Shoot everything you can, everything you see that speaks to you even mildly. Try getting super far from your subject, and try getting as close as you can. See what you like. Experiment with what sorts of subject matter you feel you can capture well. Old houses? Cars in parking lots? People passing you on the street? Your friends and family? Find out what you like.
Once you start to see what you lean towards, the goal is to get the point where it becomes second nature. You start to recognize images in your day-to-day life that catch your eye. When you drive past a barn with the setting sun pouring through its old beams, or an old house with one light on in an upstairs window, you have to feel like it would be a crime for you to not do a U-turn and stop to take a photo.
Finding your own visual style comes from not being conscious of your influence in the moment. You might look back on a photo and realize it reminds you of a Dutch landscape painting, but in the moment all you're focused on is the image in front of you that's begging to be photographed. It's as if there is only one way to capture it correctly, and you're the only person who's there at the right time to make it happen.