2005 GMC Sierra 1500 power window problem

My car has a power window problem I bought the switch and motor it still won’t work can you help

Failed window regulator… common problem with these trucks at this age. About $100 at the auto parts store, 20 minutes to replace one as an amateur. There are a number of YouTube videos on how to do it yourself.