Aligning object to the X Axis
Press R to rotate it and then type in the number of degrees want to rotate it (in this case either: 90, or -90). I would also press Shift+C to center your 3D Cursor and then press Shift+S and select: offset to 3D cursor, to center your object.