Changed code and now robot doesn't work as it should

Hey everyone, through this learning experience of teaching myself python i have come across another issue that I need advice on. I have written code and tried to record routines and then call the subroutines, now my robot isn’t doing anything and I’m not sure why, any help is greatly appreciate



Tried a different method that appears to be taking me in the right direction I need