While there is the possibility of a burr on the safety detent keeping your safety from engaging,  most of the time the hammer isnt engaged.  If the trigger has been dry fired and the hammer disengaged that will also cause the safety to switch.  Simply pull the charging handle and and that should reset the hammer to be able to move the safety selector.