You have to do some detective work, because focus problems have a lot of causes.
The first thing I look for is any part of the photo that's sharp. Something should be in auto mode, because the shutter won't fire unless the camera thought it was focused. Here's an example, focused right in the center. You can see an obvious plane of focus here, with near and far objects fuzzy. This example is pretty clear even downsized:
If you have something in focus, then it's probably the wrong thing - otherwise you'd be happy. That may be the camera or you. Imagine you are your K-30, seeing these bottles. Which of these bottles is the subject? The camera really has no idea. It's going to look for something within the range of the 5 focus points that are active, find something with enough contrast to focus on, and guess. Even a perfectly functional camera and AF system will not know you really wanted to focus on Left Hand's Wake Up Dead Nitro. You have to give it some help choosing the right subject. That might be selecting a particular AF point, or overriding AF and focusing yourself. The system might not be perfect. If you notice that the camera consistently focuses a little behind or in front of the subject, with no other reason, it may need a focus adjustment.
If nothing is really in focus, the most likely problem is motion blur. In auto mode, the camera will try pretty hard to maintain a high shutter speed so motion blur is not an issue. In lower light, the camera might run out of options. Everyone has a limit for how steady they can hold the camera. SR helps but has limits too. Subjects also move. You can look at the EXIF data attached to each shot and see the shutter speed. If you get sharp shots in midday at 1/500, but blurry shots indoors at night at 1/15, that's motion blur.
If you can't really tell from your shots where to start, you could post them here and we could maybe identify something. Or take some test shots to rule out issues yourself.