First of all, don't lube cables. It doesn't need to be done. Use them until they wear out and then buy a new set.
Troubleshooting 101 - did the bike shift well during the ride? Yes or no. If the answer is yes then the next question is what did you do after the ride to change the situation? You unclamped it and then sprayed something into the housing. OK. Are all the housings properly sitting in their stops? Is the cable sitting in its bottom bracket guide? Did you do a derailleur setup in accordance with Shimano's tech instructions? Is it working now? No. Is there some binding between the cable and one or more of its housings?
Working on drivetrain stuff does not involve rocket science but does demand a certain attention to detail. Good luck. Al