Someone posted to a similar question on here (i think the moderator) that you should daven to hashem to help you in this area.
Remember, ruchniyus is the ONLY area where you have control. And part of the control that you have is to DAVEN to Hashem to help you with it!!
You can say "Hashem! Please, please, help me to stay connected to you. It's so hard for me here..away from all the inspiration. I really love You and Your Torah and want to connect to You but its so hard...please help me to really feel it, the way I did in seminary. Please don't let me fall away, chas v'shalom!! I don't want to end up_______ Chas Veshalom. (fill in the blank with whatever scares you about how you might end up..apathetic, materialistic, shallow, disconnected, regressing to old aveiros, etc) Please send the right people my way to guide me and give me good advice. Please help, give me the koach to pick myself up. Please Hashem I'm doing my hishtadlus in the area of ruchnius right now- I'm asking You to help me...You're the ONLY ONE who can help and so I'm begging you, PLEASE Hashem, don't let me fail. Please guide me and protect me and show me the way." Or something along those lines...I find that it really helps to BEFOREHAND take a few minutes to write up a personal tefilla like this that you can keep handy which really puts in your own words everything you want to ask of hashem, (be honest!! Hashem knows everything anyways) and really express yourself there (you can say it in shma koleinu in shmona esrei) and it is a lot easier to relate to (because its in your own words obviously) but still written up so you don't leave anything out. you can always add to it as well, somnething more specific from the day, but i feel this really helps as far as verbalizing how you feel and concretizing it and remembering what you wanted to say in the moment.
You're not the first person to feel lonely and distant from Hashem! if you have an artscroll tehillim (or any tehilllim with English translation) you can really get a feel for what David Hamelech was saying...many, many times in tehillim he expresses this feeling of feeling far from Hashem and crying out to Hashem saying "Don't let me go now!!! Please guide me back to your path...Hashem don't let me fall by the wayside!!" like chazal say, As long as we have the tiniest amount of ratzon to want to want to return...even like the eye of the needle, Hashem can open it up for us "kpischo shel ulam" (like the opening to a grand hall).
also in shir hashirim there is the pasuk "Mashcheini acharecha narutza" (Pull me and I will follow you) which you can say with a lot of kavannah..my teacher in seminary said she would repeat this to herself many Friday nights when she would be wiped out after a hectic Friday of working and taking care of kids and cooking and doing everything to prepare for Shabbos etc. etc. ...basically she said many times she would just feel like putting on a snood, rushing the meal and crashing into bed to sleep. But she would repeat this to herself over and over, put on her shaitel, put on a smile, take time to be with her kids and husband at the table, and really listen to them and how their week was, and make Shabbos a special time for focusing on Torah and kedusha. In the end she said it really changed the way she felt...she really did feel more relaxed and joyful on Shabbos. I feel like we should have it written up somewhere! Like on the fridge or something 🙂
anyway, good luck, we all have these times and trust me, Hashem would rather have you close than far, He is more than willing to help!!! so just ask!!